Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class HttpException extends Exception |
||
8 | { |
||
9 | protected $httpCode; |
||
10 | protected $httpMessage = 'FAILED'; |
||
11 | protected $data; |
||
12 | |||
13 | /** |
||
14 | * Returns the httpcode attached to the exception |
||
15 | * |
||
16 | * @return string |
||
17 | */ |
||
18 | public function getHttpCode(): int |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Returns the http message attached to the exception |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getHttpMessage(): string |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Returns the data attached to the exception |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getData() |
||
43 |