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