ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LegalDocuments\ConsumerToolbox\Setting Class Reference

@template A More...

+ Collaboration diagram for ILIAS\LegalDocuments\ConsumerToolbox\Setting:

Public Member Functions

 __construct (private readonly Closure $value, private readonly Closure $update)
 
 value ()
 
 update ($value)
 

Detailed Description

@template A

Definition at line 28 of file Setting.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\ConsumerToolbox\Setting::__construct ( private readonly Closure  $value,
private readonly Closure  $update 
)
Parameters
Closure()A $value
Closure(A)void $update

Definition at line 34 of file Setting.php.

37 {
38 }

Member Function Documentation

◆ update()

ILIAS\LegalDocuments\ConsumerToolbox\Setting::update (   $value)
Parameters
A$value

Definition at line 51 of file Setting.php.

51 : void
52 {
53 ($this->update)($value);
54 }

Referenced by ILIAS\LegalDocuments\test\ConsumerToolbox\SettingTest\testUpdate().

+ Here is the caller graph for this function:

◆ value()

ILIAS\LegalDocuments\ConsumerToolbox\Setting::value ( )
Returns
A

Definition at line 43 of file Setting.php.

44 {
45 return ($this->value)();
46 }

References ILIAS\LegalDocuments\ConsumerToolbox\Setting\value().

Referenced by ILIAS\LegalDocuments\ConsumerToolbox\Setting\value().

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

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