ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 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.

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

51  : void
52  {
53  ($this->update)($value);
54  }
+ 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  }

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