| 1 | <?php |
||
| 6 | class ConfigCollection implements ConfigInterface |
||
| 7 | { |
||
| 8 | /** @var ConfigInterface[] */ |
||
| 9 | private $configs; |
||
| 10 | |||
| 11 | 2 | public function __construct(ConfigInterface ...$configs) |
|
| 15 | |||
| 16 | 2 | public function get(string $dotPath, $default = null) |
|
| 20 | |||
| 21 | 2 | public function set(string $dotPath, $value) |
|
| 25 | |||
| 26 | private function reducer(string $dotPath): callable |
||
| 42 | } |
||
| 43 |