| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class ContainerWrapper |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ContainerInterface |
||
| 13 | */ |
||
| 14 | private static ContainerInterface $container; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ContainerInterface $container |
||
| 18 | * |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public static function setContainer(ContainerInterface $container): void |
||
| 22 | { |
||
| 23 | self::$container = $container; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get a service using the container. |
||
| 28 | * |
||
| 29 | * @param string $serviceId |
||
| 30 | * |
||
| 31 | * @return mixed |
||
| 32 | * @throws ContainerExceptionInterface |
||
| 33 | * @throws NotFoundExceptionInterface |
||
| 34 | */ |
||
| 35 | public static function getFacadeService(string $serviceId): mixed |
||
| 38 | } |
||
| 39 | } |
||
| 40 |