Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
24 | 15 | public function autowire(string $name): self |
|
25 | { |
||
26 | 9 | if (!$this->reflection->isInstantiable($name)) { |
|
27 | return $this; |
||
28 | 9 | } |
|
29 | 3 | if ($this->reflection->isVariadic($name)) { |
|
30 | $this->variadic[] = $name; |
||
31 | 6 | } |
|
32 | 3 | $this->classes[$name] = $this->reflection->getDependencies($name); |
|
33 | return $this; |
||
34 | 6 | } |
|
71 |