Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
57 | 1 | protected function delegate($index) |
|
58 | { |
||
59 | 1 | if (isset($this->resolvers[$index])) { |
|
60 | return function (ReflectionParameter $param) use ($index) { |
||
61 | 1 | return $this->resolvers[$index]->resolve($param, $this->delegate($index + 1)); |
|
62 | 1 | }; |
|
63 | } |
||
64 | |||
65 | 1 | return function () { |
|
66 | 1 | return new Unresolved(); |
|
67 | 1 | }; |
|
68 | } |
||
69 | } |
||
70 |