Definition at line 25 of file SelectSetting.php.
◆ __construct()
ILIAS\LegalDocuments\ConsumerToolbox\SelectSetting::__construct |
( |
private readonly KeyValueStore |
$store, |
|
|
private readonly Marshal |
$marshal |
|
) |
| |
◆ typed()
ILIAS\LegalDocuments\ConsumerToolbox\SelectSetting::typed |
( |
string |
$name, |
|
|
Closure |
$convert_with |
|
) |
| |
- Parameters
-
Closure(Marshal) | Convert $convert_with |
Definition at line 36 of file SelectSetting.php.
38 $convert = $convert_with($this->marshal);
41 fn() => $convert->fromString()->transform($this->store->value($name)),
42 fn($value) => $this->store->update($name, $convert->toString()->transform($value))
The documentation for this class was generated from the following file: