19 declare(strict_types=1);
42 if ($preconditions === []) {
43 throw new \InvalidArgumentException(
44 "Expected at least one precondition." 59 . $this->original->getHash()
63 fn ($o) => $o->getHash(),
75 return $this->original->getLabel();
83 return $this->original->isNotable();
91 return array_merge($this->preconditions, $this->original->getPreconditions($environment));
99 return $this->original->achieve($environment);
107 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)
Setup Objective $original
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...
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)