Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
32 | 21 | public function transform($response, $resourceClass) |
|
33 | { |
||
34 | 21 | $stringBody = $this->transformToStringBody($response); |
|
35 | /** @var ResponseModelInterface $responseModel */ |
||
36 | 19 | $responseModel = $this->serializer->deserialize( |
|
37 | 19 | $stringBody, |
|
38 | 19 | $this->getModelClassForResource($resourceClass), |
|
39 | 17 | 'json' |
|
40 | ); |
||
41 | |||
42 | 17 | return $responseModel->getData(); |
|
43 | } |
||
44 | } |
||
45 |