Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 45.45% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | class InvalidTimezoneException extends ConversionException |
||
15 | { |
||
16 | public static function forNonLiteralNode(string $nodeClass, string $functionName): self |
||
17 | { |
||
18 | return new self(\sprintf( |
||
19 | 'The timezone parameter for %s must be a string literal, got %s', |
||
20 | $functionName, |
||
21 | $nodeClass |
||
22 | )); |
||
23 | } |
||
24 | |||
25 | 2 | public static function forInvalidTimezone(string $timezone, string $functionName): self |
|
31 | 2 | )); |
|
32 | } |
||
34 |