Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class Container |
||
9 | { |
||
10 | /** |
||
11 | * @var ContainerInterface |
||
12 | */ |
||
13 | private static $container = null; |
||
14 | |||
15 | /** |
||
16 | * @var ServiceLocator |
||
17 | */ |
||
18 | private static $locator = null; |
||
19 | |||
20 | /** |
||
21 | * @param ContainerInterface $container |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public static function setContainer(ContainerInterface $container) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Get a service using the container or the locator. |
||
34 | * |
||
35 | * @param string $serviceId |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public static function getFacadeService(string $serviceId) |
||
49 |