ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\Intercept\LazyIntercept Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\Intercept\LazyIntercept:
+ Collaboration diagram for ILIAS\LegalDocuments\Intercept\LazyIntercept:

Public Member Functions

 __construct (Closure $create_intercept)
 
 intercept ()
 
 id ()
 
 target ()
 
 intercept ()
 
 id ()
 
 target ()
 

Private Attributes

Closure $intercept
 

Detailed Description

Definition at line 27 of file LazyIntercept.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\Intercept\LazyIntercept::__construct ( Closure  $create_intercept)
Parameters
Closure()Intercept $create_intercept

Definition at line 35 of file LazyIntercept.php.

36 {
37 $this->intercept = function () use ($create_intercept): Intercept {
38 $intercept = $create_intercept();
39 $this->intercept = static fn(): Intercept => $intercept;
40 return $intercept;
41 };
42 }

References ILIAS\LegalDocuments\Intercept\LazyIntercept\$intercept, and ILIAS\LegalDocuments\Intercept\LazyIntercept\intercept().

+ Here is the call graph for this function:

Member Function Documentation

◆ id()

ILIAS\LegalDocuments\Intercept\LazyIntercept::id ( )

Implements ILIAS\LegalDocuments\Intercept.

Definition at line 49 of file LazyIntercept.php.

49 : string
50 {
51 return ($this->intercept)()->id();
52 }

References ILIAS\LegalDocuments\Intercept\LazyIntercept\intercept().

+ Here is the call graph for this function:

◆ intercept()

ILIAS\LegalDocuments\Intercept\LazyIntercept::intercept ( )

◆ target()

ILIAS\LegalDocuments\Intercept\LazyIntercept::target ( )

Implements ILIAS\LegalDocuments\Intercept.

Definition at line 54 of file LazyIntercept.php.

54 : Target
55 {
56 return ($this->intercept)()->target();
57 }

References ILIAS\LegalDocuments\Intercept\LazyIntercept\intercept(), and ILIAS\LegalDocuments\Intercept\LazyIntercept\target().

Referenced by ILIAS\LegalDocuments\Intercept\LazyIntercept\target().

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

Field Documentation

◆ $intercept

Closure ILIAS\LegalDocuments\Intercept\LazyIntercept::$intercept
private

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