| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 3 | public function getMethod() : \ReflectionMethod |
|
| 44 | { |
||
| 45 | 3 | $class = $this->parameter->getDeclaringClass(); |
|
| 46 | 3 | if (! $class instanceof \ReflectionClass) { |
|
| 47 | throw new \LogicException($this->parameter->getName()); |
||
|
|
|||
| 48 | } |
||
| 49 | 3 | $method = $this->parameter->getDeclaringFunction()->getShortName(); |
|
| 50 | |||
| 51 | 3 | return new \ReflectionMethod($class->name, $method); |
|
| 52 | } |
||
| 53 | |||
| 86 |