Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | class TestContainerFactory |
||
10 | { |
||
11 | private static $container; |
||
12 | |||
13 | public static function getContainerSingleton(array $config): ContainerInterface |
||
14 | { |
||
15 | if (null === self::$container) { |
||
16 | self::$container = self::getContainer($config); |
||
17 | } |
||
18 | |||
19 | return self::$container; |
||
20 | } |
||
21 | |||
22 | public static function getContainer(array $config): ContainerInterface |
||
29 | } |
||
30 | } |
||
31 |