| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class ConfigBusinessFactory |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ConfigContainer |
||
| 16 | */ |
||
| 17 | private $configContainer; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return \Xervice\Config\Business\Container\ConfigContainer |
||
| 21 | */ |
||
| 22 | 8 | public function getConfigContainer(): ConfigContainer |
|
| 23 | { |
||
| 24 | 8 | if ($this->configContainer === null) { |
|
| 25 | 8 | $this->configContainer = new ConfigContainer(); |
|
| 26 | } |
||
| 27 | 8 | return $this->configContainer; |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return \Xervice\Config\Business\Parser\Parser |
||
| 32 | */ |
||
| 33 | 8 | public function createParser(): Parser |
|
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return \Xervice\Config\Business\Environment\Environment |
||
| 42 | */ |
||
| 43 | 8 | public function createEnvironment(): Environment |
|
| 48 |