Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | 9 | public function __construct(\ReflectionFunctionAbstract $reflection, string $parameter) |
|
12 | { |
||
13 | 9 | $function = $reflection->getName(); |
|
14 | 9 | $class = $reflection->class ?? null; |
|
15 | 9 | $method = $class !== null ? "{$class}::{$function}" : $function; |
|
16 | |||
17 | 9 | parent::__construct(sprintf(static::EXCEPTION_MESSAGE, $parameter, $method)); |
|
18 | } |
||
20 |