ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\LegalDocuments\ConsumerToolbox\Setting Class Reference

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

A

Definition at line 29 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 35 of file Setting.php.

38  {
39  }

Member Function Documentation

◆ update()

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

Definition at line 52 of file Setting.php.

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

52  : void
53  {
54  ($this->update)($value);
55  }
+ Here is the caller graph for this function:

◆ value()

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

Definition at line 44 of file Setting.php.

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

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