Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
40 | public function construct( |
||
41 | DeserializationVisitorInterface $visitor, |
||
42 | ClassMetadata $metadata, |
||
43 | $data, |
||
44 | array $type, |
||
45 | DeserializationContext $context |
||
46 | ): ?object { |
||
47 | $object = $this->objectConstructor->construct( |
||
48 | $visitor, |
||
49 | $metadata, |
||
50 | $data, |
||
51 | $type, |
||
52 | $context |
||
53 | ); |
||
54 | if ($object instanceof ObjectManagerAware) { |
||
55 | $metadata = $this->objectManager->getClassMetadata(get_class($object)); |
||
56 | $object->injectObjectManager($this->objectManager, $metadata); |
||
57 | } |
||
58 | return $object; |
||
59 | } |
||
61 |