ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Setting.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ilSetting;
24 use Closure;
25 
29 class Setting
30 {
35  public function __construct(
36  private readonly Closure $value,
37  private readonly Closure $update
38  ) {
39  }
40 
44  public function value()
45  {
46  return ($this->value)();
47  }
48 
52  public function update($value): void
53  {
54  ($this->update)($value);
55  }
56 }
__construct(private readonly Closure $value, private readonly Closure $update)
Definition: Setting.php:35