ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
ObjectiveConstructor.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Setup
;
22
23
use Closure;
24
30
class
ObjectiveConstructor
31
{
32
private
string
$description
;
33
34
private
Closure
$objectiveCreationClosure
;
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
}
ILIAS\Setup\ObjectiveConstructor
Definition:
ObjectiveConstructor.php:31
ILIAS\Setup\ObjectiveConstructor\create
create()
Definition:
ObjectiveConstructor.php:47
ILIAS\Setup\ObjectiveConstructor\__construct
__construct(string $description, Closure $objectiveCreationClosure)
Definition:
ObjectiveConstructor.php:36
ILIAS\Setup\ObjectiveConstructor\$description
string $description
Definition:
ObjectiveConstructor.php:32
ILIAS\Setup\ObjectiveConstructor\$objectiveCreationClosure
Closure $objectiveCreationClosure
Definition:
ObjectiveConstructor.php:34
ILIAS\Setup\ObjectiveConstructor\getDescription
getDescription()
Definition:
ObjectiveConstructor.php:42
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup.
Definition:
Objective.php:31
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ilMysqlMyIsamToInnoDbMigration.php:19
components
ILIAS
Setup
src
ObjectiveConstructor.php
Generated on Wed Nov 11 2026 23:09:02 for ILIAS by
1.9.4 (using
Doxyfile
)