| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class HttpException extends BaseException |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @return HttpException |
||
| 27 | */ |
||
| 28 | public static function unexpectedRequestInitialization(): HttpException |
||
| 29 | { |
||
| 30 | return new static(t('exception.unexpected_request_initialization'), E_WARNING); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return HttpException |
||
| 35 | */ |
||
| 36 | public static function unexpectedResponseInitialization(): HttpException |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $name |
||
| 43 | * @return HttpException |
||
| 44 | */ |
||
| 45 | public static function methodNotAvailable(string $name): HttpException |
||
| 46 | { |
||
| 47 | return new static(t('exception.method_not_available', $name), E_WARNING); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return static |
||
| 52 | */ |
||
| 53 | public static function contentTypeNotSupported(): HttpException |
||
| 56 | } |
||
| 57 | |||
| 58 | } |
||
| 59 |