Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1.027 |
Changes | 0 |
1 | <?php |
||
24 | 3 | public function resolve(ContainerInterface $container): VirtualProxyInterface |
|
25 | { |
||
26 | /** @var LazyLoadingValueHolderFactory $factory */ |
||
27 | 3 | $factory = $container->get(LazyLoadingValueHolderFactory::class); |
|
28 | /** |
||
29 | * @var mixed $definition |
||
30 | */ |
||
31 | 3 | $definition = $this->definition; |
|
32 | 3 | $class = $this->class; |
|
33 | |||
34 | 3 | return $factory->createProxy( |
|
35 | 3 | $class, |
|
36 | 3 | static function (mixed &$wrappedObject) use ($container, $class, $definition) { |
|
37 | $definition = Normalizer::normalize($definition, $class); |
||
38 | /** |
||
39 | * @var mixed $wrappedObject |
||
40 | */ |
||
41 | $wrappedObject = $definition->resolve($container); |
||
42 | return true; |
||
43 | 3 | } |
|
47 |