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