19declare(strict_types=1);
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);
A wrapper around an objective that adds some preconditions.
getPreconditions(Setup\Environment $environment)
@inheritdocs
isApplicable(Setup\Environment $environment)
@inheritDoc
achieve(Setup\Environment $environment)
@inheritdocs
__construct(Setup\Objective $original, Setup\Objective ... $preconditions)
Setup Objective $original
An environment holds resources to be used in the setup process.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...