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