Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | abstract class AbstractHydrator implements HydratorInterface |
||
13 | { |
||
14 | const HEADER_CONTENT_TYPE = 'Content-Type'; |
||
15 | |||
16 | /** |
||
17 | * @param \Psr\Http\Message\ResponseInterface $response Response to check. |
||
18 | * |
||
19 | * @return bool |
||
20 | * |
||
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|null |
||
41 | */ |
||
42 | protected function getBodyContent(ResponseInterface $response): ?array |
||
47 |