| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 3 | public function build(callable $callable): CallableItem |
|
| 22 | { |
||
| 23 | 3 | $reflection = new \ReflectionFunction(\Closure::fromCallable($callable)); |
|
| 24 | 3 | $args = (new DependencyBuilder($this->itemProvider, new ClassItemBuilder($this->itemProvider))) |
|
| 25 | 3 | ->buildParameters($reflection->getParameters()); |
|
| 26 | |||
| 27 | 3 | return new CallableItem($callable, $args); |
|
| 28 | } |
||
| 30 |