| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 1 | private function getCallable(ReflectionParameter $parameter): string |
|
| 24 | { |
||
| 25 | 1 | $callable = []; |
|
| 26 | |||
| 27 | 1 | $class = $parameter->getDeclaringClass(); |
|
| 28 | 1 | if ($class !== null) { |
|
| 29 | 1 | $callable[] = $class->getName(); |
|
| 30 | } |
||
| 31 | 1 | $callable[] = $parameter->getDeclaringFunction()->getName() . '()'; |
|
| 32 | |||
| 33 | 1 | return implode('::', $callable); |
|
| 34 | } |
||
| 36 |