| 1 | <?php |
||
| 5 | abstract class StaticEnum extends Enum |
||
| 6 | { |
||
| 7 | /** @var StaticEnum[][] */ |
||
| 8 | private static $instances = []; |
||
| 9 | |||
| 10 | private static $constReflections = []; |
||
| 11 | |||
| 12 | 4 | final protected static function createNamedInstance(string $name, $value) |
|
| 24 | |||
| 25 | 4 | private static function getConstantReflection(string $class, string $name): \ReflectionClassConstant |
|
| 36 | |||
| 37 | 4 | private static function getConstKey(string $class, string $name): string |
|
| 41 | |||
| 42 | 4 | private static function findParentClassForConst(string $name): string |
|
| 46 | } |
||
| 47 |