Type hint __get for label and value on Base Enum
This commit is contained in:
parent
2fb55ed30d
commit
5793cf591f
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ use TypeError;
|
|||
/**
|
||||
* This Base Enum is the class which should
|
||||
* be extended to create an enumeration
|
||||
*
|
||||
* @property-read int|string $value The enum value, can be string or int
|
||||
* @property-read string $label The enum label, is a string
|
||||
*/
|
||||
abstract class BaseEnum implements JsonSerializable
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue