1 | <?php |
||
9 | class ErrorResponse extends Response |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var Exception|Throwable |
||
14 | */ |
||
15 | private $exception; |
||
16 | |||
17 | /** |
||
18 | * @param string $secret |
||
19 | * @param Exception|Throwable $exception |
||
20 | */ |
||
21 | public function __construct($secret, $exception) |
||
26 | |||
27 | /** |
||
28 | * @return null |
||
29 | */ |
||
30 | public function getData() |
||
34 | |||
35 | /** |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function isSuccessful() |
||
42 | |||
43 | /** |
||
44 | * @return int |
||
45 | */ |
||
46 | public function getHttpCode() |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getMessage() |
||
62 | |||
63 | /** |
||
64 | * @return Exception|Throwable |
||
65 | */ |
||
66 | public function getException() |
||
70 | |||
71 | } |
||
72 |