ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Setting.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use Closure;
24
29{
34 public function __construct(
35 private readonly Closure $value,
36 private readonly Closure $update
37 ) {
38 }
39
43 public function value()
44 {
45 return ($this->value)();
46 }
47
51 public function update($value): void
52 {
53 ($this->update)($value);
54 }
55}
__construct(private readonly Closure $value, private readonly Closure $update)
Definition: Setting.php:34