| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function __construct(\GuzzleHttp\Psr7\Response $response) |
||
| 20 | { |
||
| 21 | $this->response = $response; |
||
| 22 | $this->headers = $response->getHeaders(); |
||
| 23 | $this->bodyRaw = (string) $response->getBody(); |
||
| 24 | $this->body = json_decode($this->bodyRaw); |
||
| 25 | |||
| 26 | // Set our properties: |
||
| 27 | $this->statusCode = $response->getStatusCode(); |
||
| 28 | $this->timestamp = date('c'); |
||
| 29 | } |
||
| 30 | |||
| 61 |