1 | <?php |
||
5 | class Response |
||
6 | { |
||
7 | // The actual Guzzle response: |
||
8 | private $response; |
||
9 | |||
10 | // Core response: |
||
11 | private $headers; |
||
12 | private $bodyRaw; |
||
13 | private $body; |
||
14 | |||
15 | // Properties: |
||
16 | private $statusCode; |
||
17 | private $timestamp; |
||
18 | |||
19 | public function __construct(\GuzzleHttp\Psr7\Response $response) |
||
30 | |||
31 | public function getStatusCode() |
||
35 | |||
36 | public function getTimestamp() |
||
40 | |||
41 | public function getData() |
||
45 | |||
46 | public function getHeader() |
||
50 | |||
51 | public function toJSON() |
||
59 | } |
||
60 |