| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 4 | private static function getConstantReflection(string $class, string $name): \ReflectionClassConstant |
|
| 26 | { |
||
| 27 | 4 | $key = self::getConstKey($class, $name); |
|
| 28 | 4 | if (!array_key_exists($key, self::$constReflections)) { |
|
| 29 | 4 | $refl = self::getEnumReflection(static::class); |
|
| 30 | |||
| 31 | 4 | self::$constReflections[$key] = $refl->getReflectionConstant($name); |
|
| 32 | } |
||
| 33 | |||
| 34 | 4 | return self::$constReflections[$key]; |
|
| 35 | } |
||
| 36 | |||
| 47 |