Total Complexity | 6 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 20% |
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 |
|
25 | { |
||
26 | 1 | return new self('The requested web page could not be found.'); |
|
27 | } |
||
28 | |||
29 | public static function unrecognizedStructure(): self |
||
32 | } |
||
33 | |||
34 | public static function unsupportedCountry(): self |
||
35 | { |
||
39 |