1 | <?php |
||
9 | class ConfigTreeBuilder |
||
10 | { |
||
11 | /** @var ArrayableFileFactory */ |
||
12 | private $arrayableFileFactory; |
||
13 | |||
14 | /** @var ConfigTree */ |
||
15 | private $configTreeToReturn; |
||
16 | |||
17 | public function __construct(ArrayableFileFactory $arrayableFileFactory = null) |
||
22 | |||
23 | /** |
||
24 | * @throws FileFormatNotParsable |
||
25 | * @throws FileNotReadable |
||
26 | * |
||
27 | * @param string[] $pathsToFiles |
||
28 | */ |
||
29 | public function addSettingsFromPaths(array $pathsToFiles) |
||
35 | |||
36 | /** |
||
37 | * @throws FileFormatNotParsable |
||
38 | * @throws FileNotReadable |
||
39 | */ |
||
40 | private function addSettingsFromPath(string $pathToFile) |
||
47 | |||
48 | public function buildConfigTreeAndReset() : ConfigTree |
||
54 | } |
||
55 |