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