Type hint __get for label and value on Base Enum

This commit is contained in:
Jérémy Munsch 2021-09-11 13:49:45 +02:00
parent 2fb55ed30d
commit 5793cf591f
No known key found for this signature in database
GPG key ID: 677E1F9F80C16560

View file

@ -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
{