ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
ObjectiveConstructor.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
20
namespace
ILIAS\Setup
;
21
22
use Closure;
23
29
class
ObjectiveConstructor
30
{
31
private
string
$description
;
32
33
private
Closure
$objectiveCreationClosure
;
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
}
ILIAS\Setup\ObjectiveConstructor
Definition:
ObjectiveConstructor.php:30
ILIAS\Setup\ObjectiveConstructor\create
create()
Definition:
ObjectiveConstructor.php:46
ILIAS\Setup\ObjectiveConstructor\__construct
__construct(string $description, Closure $objectiveCreationClosure)
Definition:
ObjectiveConstructor.php:35
ILIAS\Setup\ObjectiveConstructor\$description
string $description
Definition:
ObjectiveConstructor.php:31
ILIAS\Setup\ObjectiveConstructor\$objectiveCreationClosure
Closure $objectiveCreationClosure
Definition:
ObjectiveConstructor.php:33
ILIAS\Setup\ObjectiveConstructor\getDescription
getDescription()
Definition:
ObjectiveConstructor.php:41
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:
class.ilMysqlMyIsamToInnoDbMigration.php:19
src
Setup
ObjectiveConstructor.php
Generated on Sun Nov 2 2025 22:02:00 for ILIAS by
1.9.4 (using
Doxyfile
)