29 if (count($preconditions) === 0) {
30 throw new \InvalidArgumentException(
31 "Expected at least one precondition." 46 . $this->original->getHash()
50 function ($o) {
return $o->getHash(); },
62 return $this->original->getLabel();
70 return $this->original->isNotable();
78 return array_merge($this->preconditions, $this->original->getPreconditions($environment));
86 return $this->original->achieve($environment);
94 return $this->original->isApplicable($environment);
An objective is a desired state of the system that is supposed to be created by the setup...
isApplicable(Setup\Environment $environment)
achieve(Setup\Environment $environment)
A wrapper around an objective that adds some preconditions.
__construct(Setup\Objective $original, Setup\Objective ... $preconditions)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
getPreconditions(Setup\Environment $environment)