1 | <?php |
||
23 | abstract class AbstractPsrResponseTransformer implements ResponseTransformerInterface |
||
24 | { |
||
25 | /** |
||
26 | * @param ResponseInterface $response |
||
27 | * |
||
28 | * @return ResponseInterface |
||
29 | */ |
||
30 | 86 | protected function transformToPsrResponse(ResponseInterface $response): ResponseInterface |
|
34 | |||
35 | /** |
||
36 | * @param ResponseInterface $response |
||
37 | * |
||
38 | * @return StreamInterface |
||
39 | */ |
||
40 | 84 | protected function transformToPsrBody(ResponseInterface $response): StreamInterface |
|
44 | |||
45 | /** |
||
46 | * @param ResponseInterface $response |
||
47 | * |
||
48 | * @throws \RuntimeException |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | 82 | protected function transformToStringBody(ResponseInterface $response): string |
|
56 | |||
57 | /** |
||
58 | * @param ResponseInterface $response |
||
59 | * |
||
60 | * @throws \RuntimeException |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | 80 | protected function transformToArrayBody(ResponseInterface $response): array |
|
68 | } |
||
69 |