ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ObjectiveConstructor.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20namespace ILIAS\Setup;
21
22use Closure;
23
30{
31 private string $description;
32
34
35 public function __construct(string $description, Closure $objectiveCreationClosure)
36 {
37 $this->description = $description;
38 $this->objectiveCreationClosure = $objectiveCreationClosure;
39 }
40
41 public function getDescription(): string
42 {
43 return $this->description;
44 }
45
46 public function create(): Objective
47 {
48 return ($this->objectiveCreationClosure)();
49 }
50}
__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...