| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 13 | public function __invoke(Container $container, Bind $bind) |
|
| 41 | { |
||
| 42 | 13 | $bound = (new DependencyFactory)->newAnnotatedDependency($this->class); |
|
| 43 | 13 | $bound->setScope($this->scope); |
|
| 44 | 13 | $bind->setBound($bound); |
|
| 45 | 13 | $container->add($bind); |
|
| 46 | 13 | $constructor = $this->class->getConstructor(); |
|
| 47 | 13 | if ($constructor) { |
|
| 48 | 8 | (new UntargetedBind)->__invoke($container, $constructor); |
|
| 49 | 8 | } |
|
| 50 | 13 | } |
|
| 51 | } |
||
| 52 |