ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Objective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Setup;
22
30interface Objective
31{
39 public function getHash(): string;
40
44 public function getLabel(): string;
45
49 public function isNotable(): bool;
50
58 public function getPreconditions(Environment $environment): array;
59
72 public function achieve(Environment $environment): Environment;
73
81 public function isApplicable(Environment $environment): bool;
82}
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
isApplicable(Environment $environment)
Get to know whether the objective is applicable.
achieve(Environment $environment)
Objectives can be achieved.
getHash()
Get a hash for this objective.
getPreconditions(Environment $environment)
Objectives might depend on other objectives.
isNotable()
Get to know if this is an interesting objective for a human.
getLabel()
Get a label that describes this objective.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...