Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function addContainer(MutableContainerInterface $container): void |
||
25 | { |
||
26 | $containerName = get_class($container); |
||
27 | if (array_key_exists($containerName, $this->registry)) { |
||
28 | throw new ContainerAlreadyRegisteredException($containerName); |
||
29 | } |
||
30 | |||
31 | $this->registry[$containerName] = $container; |
||
32 | } |
||
61 |