ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\LegalDocuments\LazyProvide Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\LazyProvide:
+ Collaboration diagram for ILIAS\LegalDocuments\LazyProvide:

Public Member Functions

 __construct (Closure $create)
 
 withdrawal ()
 
 publicPage ()
 
 document ()
 
 history ()
 
 allowEditing ()
 
 publicApi ()
 
 id ()
 
- Public Member Functions inherited from ILIAS\LegalDocuments\Provide
 __construct (private readonly string $id, private readonly Internal $internal, private readonly Container $container, private readonly string $document_key='document')
 
 withdrawal ()
 
 publicPage ()
 
 document ()
 
 history ()
 
 allowEditing ()
 
 publicApi ()
 
 id ()
 

Private Attributes

Closure $provide
 

Detailed Description

Definition at line 30 of file LazyProvide.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\LazyProvide::__construct ( Closure  $create)
Parameters
Closure()Provide $create

Definition at line 38 of file LazyProvide.php.

References ILIAS\LegalDocuments\LazyProvide\$provide.

39  {
40  $this->provide = function () use ($create) {
41  $provide = $create();
42  $this->provide = fn() => $provide;
43  return $provide;
44  };
45  }

Member Function Documentation

◆ allowEditing()

ILIAS\LegalDocuments\LazyProvide::allowEditing ( )

Definition at line 67 of file LazyProvide.php.

67  : Provide
68  {
69  return ($this->provide)()->allowEditing();
70  }

◆ document()

ILIAS\LegalDocuments\LazyProvide::document ( )

Definition at line 57 of file LazyProvide.php.

57  : ProvideDocument
58  {
59  return ($this->provide)()->document();
60  }

◆ history()

ILIAS\LegalDocuments\LazyProvide::history ( )

Definition at line 62 of file LazyProvide.php.

62  : ProvideHistory
63  {
64  return ($this->provide)()->history();
65  }

◆ id()

ILIAS\LegalDocuments\LazyProvide::id ( )

Definition at line 77 of file LazyProvide.php.

77  : string
78  {
79  return ($this->provide)()->id();
80  }

◆ publicApi()

ILIAS\LegalDocuments\LazyProvide::publicApi ( )

Definition at line 72 of file LazyProvide.php.

72  : ?PublicApi
73  {
74  return ($this->provide)()->publicApi();
75  }

◆ publicPage()

ILIAS\LegalDocuments\LazyProvide::publicPage ( )

Definition at line 52 of file LazyProvide.php.

52  : ProvidePublicPage
53  {
54  return ($this->provide)()->publicPage();
55  }

◆ withdrawal()

ILIAS\LegalDocuments\LazyProvide::withdrawal ( )

Definition at line 47 of file LazyProvide.php.

47  : ProvideWithdrawal
48  {
49  return ($this->provide)()->withdrawal();
50  }

Field Documentation

◆ $provide

Closure ILIAS\LegalDocuments\LazyProvide::$provide
private

Definition at line 33 of file LazyProvide.php.

Referenced by ILIAS\LegalDocuments\LazyProvide\__construct().


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