ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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 ()
 

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.

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

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  }
+ 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.

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

49  : string
50  {
51  return ($this->intercept)()->id();
52  }
+ 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.

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

+ Here is the call 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: