From 5793cf591ffe0820843afe9ff48b236930fb9d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Sat, 11 Sep 2021 13:49:45 +0200 Subject: [PATCH] Type hint __get for label and value on Base Enum --- src/BaseEnum.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BaseEnum.php b/src/BaseEnum.php index 7bbef42..a777ccb 100644 --- a/src/BaseEnum.php +++ b/src/BaseEnum.php @@ -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 {