ILIAS  release_7 Revision v7.30-3-g800a261c036
NullObjective.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
6
8
13{
14 const LABEL = "Nothing to do.";
15
16 public function getHash() : string
17 {
18 return "null-objective";
19 }
20
21 public function getLabel() : string
22 {
23 return self::LABEL;
24 }
25
26 public function isNotable() : bool
27 {
28 return false;
29 }
30
31 /*
32 * @inheritdocs
33 */
34 public function getPreconditions(Setup\Environment $environment) : array
35 {
36 return [];
37 }
38
42 public function achieve(Setup\Environment $environment) : Setup\Environment
43 {
44 return $environment;
45 }
46
50 public function isApplicable(Setup\Environment $environment) : bool
51 {
52 return false;
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
A non-objective, nothing to do to achieve it...
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
@inheritdocs
isApplicable(Setup\Environment $environment)
@inheritDoc
getLabel()
Get a label that describes this objective.
getHash()
Get a hash for this objective.
isNotable()
Get to know if this is an interesting objective for a human.
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...