Total Complexity | 7 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 0 |
1 | <?php |
||
9 | class GuzzleResponse implements HttpClientResponse |
||
10 | { |
||
11 | protected ResponseInterface $response; |
||
12 | |||
13 | 11 | public function __construct(ResponseInterface $response) |
|
14 | { |
||
15 | 11 | $this->response = $response; |
|
16 | 11 | } |
|
17 | |||
18 | 5 | public function getStatusCode(): int |
|
19 | { |
||
20 | 5 | return $this->response->getStatusCode(); |
|
21 | } |
||
22 | |||
23 | public function getHeaders(): array |
||
26 | } |
||
27 | |||
28 | public function getBody(): string |
||
29 | { |
||
30 | return $this->toString(); |
||
31 | } |
||
32 | |||
33 | 11 | public function parseJson(): array |
|
46 | } |
||
47 | |||
48 | 11 | private function toString(): string |
|
56 |