Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
34 | 7 | public function __construct( |
|
35 | \ReflectionParameter $parameter, |
||
36 | \ReflectionFunctionAbstract $context |
||
37 | ) { |
||
38 | 7 | $this->parameter = $parameter; |
|
39 | 7 | $this->context = $context; |
|
40 | |||
41 | 7 | $name = $context->getName(); |
|
42 | 7 | if ($context instanceof \ReflectionMethod) { |
|
43 | 7 | $name = $context->class . '::' . $name; |
|
44 | } |
||
45 | |||
46 | 7 | parent::__construct("Unable to resolve '{$parameter->name}' argument in '{$name}'"); |
|
47 | 7 | } |
|
48 | |||
65 |