Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait ReflectionTrait |
||
13 | { |
||
14 | /** @var BetterReflection */ |
||
15 | private static $reflectionEnvironment; |
||
16 | |||
17 | /** |
||
18 | * Get the current reflection environment. |
||
19 | * |
||
20 | * @return BetterReflection |
||
21 | */ |
||
22 | 1 | private static function getReflectionEnvironment(): BetterReflection |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Get the reflection for the given class name. |
||
33 | * |
||
34 | * @param string $className |
||
35 | * |
||
36 | * @return ReflectionClass |
||
37 | */ |
||
38 | 1 | public function getClassReflection(string $className): ReflectionClass |
|
45 |