| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class ContainerException extends Exception implements ContainerExceptionInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param ReflectionNamedType|null $class |
||
| 15 | * |
||
| 16 | * @return ContainerException |
||
| 17 | */ |
||
| 18 | 6 | public static function findType(?ReflectionNamedType $class): ContainerException |
|
| 19 | { |
||
| 20 | 6 | return new self(sprintf('Unable to find type hint (%s)', ($class ? $class->getName() : ''))); |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $id |
||
| 25 | * |
||
| 26 | * @return ContainerException |
||
| 27 | */ |
||
| 28 | 3 | public static function shareOnMake(string $id): ContainerException |
|
| 31 | } |
||
| 32 | } |
||
| 33 |