| Conditions | 4 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 45 | 1 | private function getReflection(string|object $class, string $method = null): ReflectionClass|ReflectionMethod |
|
| 46 | { |
||
| 47 | 1 | if ($method !== null) { |
|
| 48 | 1 | $reflection = new ReflectionMethod(is_object($class) ? get_class($class) : $class, $method); |
|
| 49 | } else { |
||
| 50 | 1 | $reflection = new ReflectionClass(is_object($class) ? get_class($class) : $class); |
|
| 51 | } |
||
| 52 | 1 | return $reflection; |
|
| 53 | } |
||
| 55 |