Lines
0.00%
0 / 3
Methods
0.00%
0 / 3
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| set | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| get | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| reset | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 28 | final class ContainerRegistry | |
| 29 | { | |
| 30 | private static ?ContainerInterface $container = null; | |
| 31 | ||
| 32 | public static function set(ContainerInterface $container): void | |
| 33 | { | |
| 34 | self::$container = $container; | |
| 35 | } | |
| 36 | ||
| 37 | public static function get(): ?ContainerInterface | |
| 38 | { | |
| 39 | return self::$container; | |
| 40 | } | |
| 41 | ||
| 42 | public static function reset(): void | |
| 43 | { | |
| 44 | self::$container = null; | |
| 45 | } | |
| 46 | } |