Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 4.679 |
Changes | 0 |
1 | <?php |
||
31 | 2 | public function construct(VisitorInterface $visitor, ClassMetadata $metadata, $data, array $type, DeserializationContext $context) |
|
32 | { |
||
33 | 2 | if ($context->attributes->containsKey('target') && $context->getDepth() === 1) { |
|
34 | 2 | return $context->attributes->get('target')->get(); |
|
35 | } |
||
36 | |||
37 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context); |
||
38 | } |
||
39 | } |
||
40 |