ILIAS  release_7 Revision v7.30-3-g800a261c036
Objective.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5namespace ILIAS\Setup;
6
14interface Objective
15{
23 public function getHash() : string;
24
28 public function getLabel() : string;
29
33 public function isNotable() : bool;
34
42 public function getPreconditions(Environment $environment) : array;
43
56 public function achieve(Environment $environment) : Environment;
57
65 public function isApplicable(Environment $environment) : bool;
66}
An exception for terminatinating execution or to throw for unit testing.
An environment holds resources to be used in the setup process.
Definition: Environment.php:12
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
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...