1 | <?php |
||
20 | class ArrayTransformer implements ResponseTransformerInterface |
||
21 | { |
||
22 | /** |
||
23 | * @param string $responseFormat |
||
24 | * |
||
25 | * @return bool |
||
26 | */ |
||
27 | 1 | public function isSupportedResponseFormat($responseFormat) |
|
28 | { |
||
29 | 1 | return $responseFormat === ResponseFormatEnum::JSON_BODY; |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param mixed $response |
||
34 | * @param string $resourceClass |
||
35 | * |
||
36 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
37 | * |
||
38 | * @throws \InvalidArgumentException |
||
39 | * @throws \RuntimeException |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | 1 | public function transform($response, $resourceClass) |
|
47 | } |
||
48 |