50 get_class($this) .
"::" . $this->label
83 if (($this->condition)($environment)) {
89 $admin_interaction->inform($this->message);
93 "An external condition was not met: {$this->label}"
An exception for terminatinating execution or to throw for unit testing.
A condition that can't be met by ILIAS itself needs to be met by some external means.
achieve(Environment $environment)
Objectives can be achieved.They might add resources to the environment when they have been achieved....
getLabel()
Get a label that describes this objective.
getPreconditions(Environment $environment)
Objectives might depend on other objectives.Objective[]
__construct(string $label, callable $condition, string $message=null)
isNotable()
Get to know if this is an interesting objective for a human.
getHash()
Get a hash for this objective.The hash of two objectives must be the same, if they are the same objec...
Signals that some goal won't be achievable by actions of the system ever.
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
const RESOURCE_ADMIN_INTERACTION
An objective is a desired state of the system that is supposed to be created by the setup.