Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | abstract class Response |
||
6 | { |
||
7 | /** @var \GuzzleHttp\Psr7\Response */ |
||
8 | protected $response; |
||
9 | |||
10 | public function getResponse() |
||
11 | { |
||
12 | return $this->response; |
||
13 | } |
||
14 | |||
15 | public function context() |
||
16 | { |
||
17 | return $this->getBody()->Context; |
||
18 | } |
||
19 | |||
20 | public function getBody() |
||
23 | } |
||
24 | |||
25 | public function wasSuccessful() |
||
26 | { |
||
27 | return $this->getBody()->success; |
||
28 | } |
||
29 | |||
30 | public function getStatusCode() |
||
33 | } |
||
34 | |||
35 | public function code() |
||
36 | { |
||
37 | return $this->getBody()->Code; |
||
38 | } |
||
39 | |||
40 | public function error() |
||
43 | } |
||
44 | } |
||
45 |