| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | 11 | public function construct(DeserializationVisitorInterface $visitor, ClassMetadata $metadata, $data, array $type, DeserializationContext $context): ?object |
|
| 28 | { |
||
| 29 | 11 | $params = []; |
|
| 30 | 11 | if (is_a($metadata->name, ConstructWithClientInterface::class, true)) { |
|
| 31 | 7 | $params = [$this->client]; |
|
| 32 | } |
||
| 33 | |||
| 34 | 11 | return new $metadata->name(...$params); |
|
| 35 | } |
||
| 37 |