ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullObjective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Setup\Objective;
22
23use ILIAS\Setup;
24
29{
30 public const LABEL = "Nothing to do.";
31
32 public function getHash(): string
33 {
34 return "null-objective";
35 }
36
37 public function getLabel(): string
38 {
39 return self::LABEL;
40 }
41
42 public function isNotable(): bool
43 {
44 return false;
45 }
46
47 /*
48 * @inheritdocs
49 */
50 public function getPreconditions(Setup\Environment $environment): array
51 {
52 return [];
53 }
54
58 public function achieve(Setup\Environment $environment): Setup\Environment
59 {
60 return $environment;
61 }
62
66 public function isApplicable(Setup\Environment $environment): bool
67 {
68 return false;
69 }
70}
A non-objective, nothing to do to achieve it...
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
@inheritdocs
isApplicable(Setup\Environment $environment)
@inheritDoc
getLabel()
Get a label that describes this objective.
getHash()
Get a hash for this objective.
isNotable()
Get to know if this is an interesting objective for a human.
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...