1 | <?php |
||
6 | class ConfigTree |
||
7 | { |
||
8 | /** @var array */ |
||
9 | private $rawConfigArray; |
||
10 | |||
11 | public function __construct(array $configArray) |
||
15 | |||
16 | public function toArray() : array |
||
20 | |||
21 | /** |
||
22 | * @throws ConfigTreeParamNotSet |
||
23 | * |
||
24 | * @return mixed |
||
25 | */ |
||
26 | public function getSettingFromPath(string $pathToConfigSettingInTree) |
||
40 | |||
41 | /** |
||
42 | * In $configC = $configA->withAnotherConfigTreeMergedIn($configB), duplicate settings in $configB override $configA |
||
43 | */ |
||
44 | public function withAnotherConfigTreeMergedIn(ConfigTree $anotherConfigTree) : ConfigTree |
||
50 | |||
51 | /** |
||
52 | * @throws ConfigTreeParamNotSet |
||
53 | */ |
||
54 | public function getSubtreeFromPath(string $pathToSubtree) : ConfigTree |
||
62 | } |
||
63 |