| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class HttpException extends FrameworkException |
||
| 15 | { |
||
| 16 | public static function methodNotAllowed(string $method): self |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function invalidStatusCode(int $code) |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function unkownStatusCode(int $code) |
||
| 27 | { |
||
| 28 | 2 | return new static(lang('HTTP.unknownStatusCode', [$code])); |
|
| 29 | } |
||
| 30 | |||
| 31 | public static function invalidRedirectRoute(string $route) |
||
| 32 | { |
||
| 33 | 4 | return new static(lang('HTTP.invalidRoute', [$route])); |
|
| 34 | } |
||
| 35 | |||
| 36 | public static function badRequest(string $message = 'Bad Request') |
||
| 39 | } |
||
| 40 | } |
||
| 41 |