Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 4 | public function transform(ResponseInterface $response, ContextInterface $context = null): void |
|
17 | { |
||
18 | 4 | $data = $this->serializer->deserialize( |
|
19 | 4 | $response->getContent(), |
|
20 | 4 | $this->class, |
|
21 | 4 | 'json', |
|
22 | 4 | $context ?? $this->context |
|
23 | ); |
||
24 | |||
25 | 4 | $response->setData($data); |
|
26 | 4 | } |
|
51 |