| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 6 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 38 | 4 | public function construct(VisitorInterface $visitor, ClassMetadata $metadata, $data, array $type, DeserializationContext $context)  | 
            |
| 39 |     { | 
            ||
| 40 | 4 |         if (!isset($this->config[$metadata->name])) { | 
            |
| 41 | 1 | return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);  | 
            |
| 42 | }  | 
            ||
| 43 | |||
| 44 | 3 | $class = $metadata->name;  | 
            |
| 45 | 3 | $entity = $this->resolver->resolve($class, $data, $context->attributes->all()['entity_resolver'][$class] ?? null);  | 
            |
| 46 | |||
| 47 | 3 | return (null === $entity) ? new $class() : $entity;  | 
            |
| 48 | }  | 
            ||
| 50 |