Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class Container |
||
9 | { |
||
10 | /** |
||
11 | * @var ContainerInterface |
||
12 | */ |
||
13 | protected static $container = null; |
||
14 | |||
15 | /** |
||
16 | * @var ServiceLocator |
||
17 | */ |
||
18 | protected static $locator = null; |
||
19 | |||
20 | /** |
||
21 | * Get a service using the container or the locator. |
||
22 | * |
||
23 | * @param string $serviceId |
||
24 | * |
||
25 | * @return mixed|null |
||
26 | */ |
||
27 | public static function getService(string $serviceId) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Set the container and locator. |
||
39 | * |
||
40 | * @param ContainerInterface $container |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public static function init(ContainerInterface $container) |
||
50 |