Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class TypeHintReaderException extends \Exception |
||
10 | { |
||
11 | /** |
||
12 | * @param $propertyName |
||
13 | * @return TypeHintReaderException |
||
14 | */ |
||
15 | 3 | public static function withoutTypeHint(string $propertyName): self |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param string $propertyName |
||
22 | * @return TypeHintReaderException |
||
23 | */ |
||
24 | 3 | public static function invalidPropertyName(string $propertyName): self |
|
25 | { |
||
26 | 3 | return new self(sprintf("The parameter %s not exists", $propertyName)); |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string $class |
||
31 | * @return TypeHintReaderException |
||
32 | */ |
||
33 | 3 | public static function notExistsClass(string $class): self |
|
36 | } |
||
37 | } |
||
38 |