31 get_class($this) .
"::" . $this->message
40 return "Get a confirmation from admin.";
67 if ($achievement_tracker->isAchieved($this)) {
71 if (!$admin_interaction->confirmOrDeny($this->message)) {
77 $achievement_tracker->trackAchievementOf($this);
An exception for terminatinating execution or to throw for unit testing.
An admin needs to confirm something to achieve this objective.
__construct(string $message)
achieve(Environment $environment)
Objectives can be achieved.They might add resources to the environment when they have been achieved....
isNotable()
Get to know if this is an interesting objective for a human.
getLabel()
Get a label that describes this objective.
getHash()
Get a hash for this objective.The hash of two objectives must be the same, if they are the same objec...
getPreconditions(Environment $environment)
Objectives might depend on other objectives.Objective[]
Signals that a necessary confirmation from the admin is missing.
An environment holds resources to be used in the setup process.
const RESOURCE_ACHIEVEMENT_TRACKER
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.