File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
use ReflectionClass ;
10
10
11
11
/**
12
- * Abstract base class for enum-like behavior in PHP 7.4
12
+ * Abstract base class for enum-like behavior in PHP 7.4.
13
13
*
14
14
* This class provides enum-like functionality for PHP versions that don't support native enums.
15
15
* Child classes should define uppercase snake_case constants for enum values.
35
35
abstract class AbstractEnum
36
36
{
37
37
/**
38
- * @var string The value of the enum instance
38
+ * @var string The value of the enum instance.
39
39
*/
40
40
private string $ value ;
41
41
42
42
/**
43
- * @var string The name of the enum constant
43
+ * @var string The name of the enum constant.
44
44
*/
45
45
private string $ name ;
46
46
47
47
/**
48
- * @var array<string, array<string, string>> Cache for reflection data
48
+ * @var array<string, array<string, string>> Cache for reflection data.
49
49
*/
50
50
private static array $ cache = [];
51
51
52
52
/**
53
- * @var array<string, array<string, self>> Cache for enum instances
53
+ * @var array<string, array<string, self>> Cache for enum instances.
54
54
*/
55
55
private static array $ instances = [];
56
56
You can’t perform that action at this time.
0 commit comments