| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __construct( |
||
| 17 | protected \ReflectionParameter $parameter, |
||
| 18 | protected \ReflectionFunctionAbstract $context, |
||
| 19 | ) { |
||
| 20 | $name = $context->getName(); |
||
| 21 | if ($context instanceof \ReflectionMethod) { |
||
| 22 | $name = $context->class . '::' . $name; |
||
| 23 | } |
||
| 24 | |||
| 25 | parent::__construct(\sprintf("Unable to resolve '%s' argument in '%s'", $parameter->name, $name)); |
||
| 26 | } |
||
| 38 |