Total Complexity | 7 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 14.29% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class HolidaysPhpException extends Exception |
||
8 | { |
||
9 | public static function notEmptyCountry(): self |
||
12 | } |
||
13 | |||
14 | public static function notEmptyLanguage(): self |
||
15 | { |
||
16 | return new self('The language must not be empty.'); |
||
17 | } |
||
18 | |||
19 | public static function notEmptyTitle(): self |
||
20 | { |
||
21 | return new self('The title must not be empty.'); |
||
22 | } |
||
23 | |||
24 | 1 | public static function notFound(): self |
|
27 | } |
||
28 | |||
29 | public static function unrecognizedDate(): self |
||
30 | { |
||
31 | return new self('The date of a holiday could not be recognized. Maybe the structure was updated.'); |
||
32 | } |
||
33 | |||
34 | public static function unrecognizedStructure(): self |
||
37 | } |
||
38 | |||
39 | public static function unsupportedCountry(): self |
||
42 | } |
||
43 | } |
||
44 |