Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | public function resolve(ReflectionParameter $param, $next = null) |
|
38 | { |
||
39 | 1 | $result = call_user_func($this->delegate(0), $param); |
|
40 | |||
41 | 1 | if ($result instanceof Unresolved) { |
|
42 | 1 | if ($next) { |
|
43 | 1 | return $next($param); |
|
44 | } |
||
45 | |||
46 | 1 | throw new UnresolvedException($param); |
|
47 | } |
||
48 | |||
49 | 1 | return $result; |
|
50 | } |
||
51 | |||
70 |