| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class GenericHttpException extends RuntimeException implements HttpException |
||
| 9 | { |
||
| 10 | public function getHttpStatusCode(): int |
||
| 11 | { |
||
| 12 | return $this->getCode(); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function getHttpBody(): string |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function invalidUri($uri, $method): self |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function methodNotAllowed(string $uri, string $method, array $allowedMethods): self |
||
| 35 |