| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class NotFoundException extends ErrorException |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param string $id |
||
| 17 | * |
||
| 18 | * @return NotFoundException |
||
| 19 | */ |
||
| 20 | 3 | public static function anime($id) |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $id |
||
| 27 | * |
||
| 28 | * @return NotFoundException |
||
| 29 | */ |
||
| 30 | 3 | public static function manga($id) |
|
| 31 | { |
||
| 32 | 3 | return new self(sprintf('Manga "%s" not found.', $id)); |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $id |
||
| 37 | * |
||
| 38 | * @return NotFoundException |
||
| 39 | */ |
||
| 40 | 3 | public static function title($id) |
|
| 41 | { |
||
| 42 | 3 | return new self(sprintf('Title "%s" not found.', $id)); |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return NotFoundException |
||
| 47 | */ |
||
| 48 | 1 | public static function page() |
|
| 51 | } |
||
| 52 | } |
||
| 53 |