ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ObjectiveConstructor.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Setup;
22
23use Closure;
24
31{
32 private string $description;
33
35
36 public function __construct(string $description, Closure $objectiveCreationClosure)
37 {
38 $this->description = $description;
39 $this->objectiveCreationClosure = $objectiveCreationClosure;
40 }
41
42 public function getDescription(): string
43 {
44 return $this->description;
45 }
46
47 public function create(): Objective
48 {
49 return ($this->objectiveCreationClosure)();
50 }
51}
__construct(string $description, Closure $objectiveCreationClosure)
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...