Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class HttpException extends Exception |
||
10 | { |
||
11 | protected $httpCode = Response::BAD_REQUEST; |
||
12 | protected $httpMessage = 'Bad Request'; |
||
13 | protected $data; |
||
14 | |||
15 | /** |
||
16 | * Get the http status code of the exception. |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | public function getHttpCode(): int |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Get the message string from the exception. |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getHttpMessage(): string |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Get the message DATA from the exception. |
||
37 | * |
||
38 | * @return string|null |
||
39 | */ |
||
40 | public function getData(): ?string |
||
45 |