Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | abstract class AbstractHydrator implements HydratorInterface |
||
14 | { |
||
15 | const HEADER_CONTENT_TYPE = 'Content-Type'; |
||
16 | |||
17 | /** |
||
18 | * @param \Psr\Http\Message\ResponseInterface $response Response to check. |
||
19 | * |
||
20 | * @return bool |
||
21 | */ |
||
22 | protected function isJsonResponse(ResponseInterface $response): bool |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param \Psr\Http\Message\ResponseInterface $response Response to parse. |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | protected function getBody(ResponseInterface $response): string |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param \Psr\Http\Message\ResponseInterface $response Response to parse. |
||
39 | * |
||
40 | * @return array |
||
41 | * |
||
42 | * @throws \IBM\Watson\Common\Exception\JsonException |
||
43 | */ |
||
44 | protected function getBodyContent(ResponseInterface $response): array |
||
59 |