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