Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function normalize($entity, array $context = []) |
||
32 | { |
||
33 | if (null === $entity) { |
||
34 | return null; |
||
35 | } |
||
36 | |||
37 | $jmsContext = $this->contextFactory->createSerializationContext(); |
||
38 | $jmsContext->setGroups($context); |
||
39 | |||
40 | return $this->normalizer->toArray($entity, $jmsContext); |
||
41 | } |
||
42 | } |
||
43 |