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