29 if (count($preconditions) === 0) {
30 throw new \InvalidArgumentException(
31 "Expected at least one precondition." 43 return $this->original->getHash();
51 return $this->original->getLabel();
59 return $this->original->isNotable();
67 return array_merge($this->preconditions, $this->original->getPreconditions($environment));
75 return $this->original->achieve($environment);
An objective is a desired state of the system that is supposed to be created by the setup...
__construct(Objective $original, Objective ... $preconditions)
achieve(Environment $environment)
A wrapper around an objective that adds some preconditions.
An environment holds resources to be used in the setup process.
getPreconditions(Environment $environment)