ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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

References ILIAS\LegalDocuments\LazyProvide\$provide.

Member Function Documentation

◆ allowEditing()

ILIAS\LegalDocuments\LazyProvide::allowEditing ( )

Reimplemented from ILIAS\LegalDocuments\Provide.

Definition at line 67 of file LazyProvide.php.

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

References ILIAS\LegalDocuments\LazyProvide\allowEditing().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ document()

ILIAS\LegalDocuments\LazyProvide::document ( )

Reimplemented from ILIAS\LegalDocuments\Provide.

Definition at line 57 of file LazyProvide.php.

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

References ILIAS\LegalDocuments\LazyProvide\document().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ history()

ILIAS\LegalDocuments\LazyProvide::history ( )

Reimplemented from ILIAS\LegalDocuments\Provide.

Definition at line 62 of file LazyProvide.php.

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

References ILIAS\LegalDocuments\LazyProvide\history().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ id()

ILIAS\LegalDocuments\LazyProvide::id ( )

Reimplemented from ILIAS\LegalDocuments\Provide.

Definition at line 77 of file LazyProvide.php.

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

◆ publicApi()

ILIAS\LegalDocuments\LazyProvide::publicApi ( )

Reimplemented from ILIAS\LegalDocuments\Provide.

Definition at line 72 of file LazyProvide.php.

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

References ILIAS\LegalDocuments\LazyProvide\publicApi().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ publicPage()

ILIAS\LegalDocuments\LazyProvide::publicPage ( )

Reimplemented from ILIAS\LegalDocuments\Provide.

Definition at line 52 of file LazyProvide.php.

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

References ILIAS\LegalDocuments\LazyProvide\publicPage().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withdrawal()

ILIAS\LegalDocuments\LazyProvide::withdrawal ( )

Reimplemented from ILIAS\LegalDocuments\Provide.

Definition at line 47 of file LazyProvide.php.

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

References ILIAS\LegalDocuments\LazyProvide\withdrawal().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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: