| 1 | <?php |
||
| 14 | class ResponseTransformer |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param ResponseInterface $response |
||
| 18 | * @param bool|null $needHeader Whenever you need response header in your data |
||
| 19 | * @param bool|null $noBody When HEAD Method used you dont'need to parse response Body |
||
| 20 | * @return array |
||
| 21 | * @throws TransformResponseException |
||
| 22 | */ |
||
| 23 | 29 | public function transform(ResponseInterface $response, ?bool $needHeader = null, ?bool $noBody = null): array |
|
| 43 | } |
||
| 44 |