ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Setup\ObjectiveConstructor Class Reference
+ Collaboration diagram for ILIAS\Setup\ObjectiveConstructor:

Public Member Functions

 __construct (string $description, Closure $objectiveCreationClosure)
 
 getDescription ()
 
 create ()
 

Private Attributes

string $description
 
Closure $objectiveCreationClosure
 

Detailed Description

Definition at line 29 of file ObjectiveConstructor.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Setup\ObjectiveConstructor::__construct ( string  $description,
Closure  $objectiveCreationClosure 
)

Member Function Documentation

◆ create()

ILIAS\Setup\ObjectiveConstructor::create ( )

Definition at line 46 of file ObjectiveConstructor.php.

46  : Objective
47  {
48  return ($this->objectiveCreationClosure)();
49  }

◆ getDescription()

ILIAS\Setup\ObjectiveConstructor::getDescription ( )

Definition at line 41 of file ObjectiveConstructor.php.

References ILIAS\Setup\ObjectiveConstructor\$description.

41  : string
42  {
43  return $this->description;
44  }

Field Documentation

◆ $description

string ILIAS\Setup\ObjectiveConstructor::$description
private

◆ $objectiveCreationClosure

Closure ILIAS\Setup\ObjectiveConstructor::$objectiveCreationClosure
private

The documentation for this class was generated from the following file: