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