Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class YamlConfigFactory extends AbstractFactory |
||
17 | { |
||
18 | /** |
||
19 | * @param \DataProvider\YamlConfigFileListDataProvider $fileListDataProvider |
||
20 | * |
||
21 | * @return \Xervice\YamlConfig\Business\Loader\ConfigLoader |
||
22 | */ |
||
23 | 1 | public function createConfigLoader(YamlConfigFileListDataProvider $fileListDataProvider): ConfigLoaderInterface |
|
24 | { |
||
25 | 1 | return new ConfigLoader( |
|
26 | 1 | $fileListDataProvider, |
|
27 | 1 | $this->createReader(), |
|
28 | 1 | $this->getHydratorCollection() |
|
29 | ); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return \Xervice\YamlConfig\Business\Reader\YamlReader |
||
34 | */ |
||
35 | 1 | public function createReader(): ReaderInterface |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return \Xervice\YamlConfig\Business\Hydrator\HydratorCollection |
||
42 | */ |
||
43 | 1 | public function getHydratorCollection(): HydratorCollection |
|
46 | } |
||
47 | } |