Skip to content

Commit fefab6e

Browse files
committed
chore: adds property-read for nameand value
1 parent 6f51c80 commit fefab6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Common/AbstractEnum.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
* $enum->is(PersonEnum::firstName()); // Returns true
3131
* PersonEnum::cases(); // Returns array of all enum instances
3232
*
33+
* @property-read string $value The value of the enum instance.
34+
* @property-read string $name The name of the enum constant.
35+
*
3336
* @since n.e.x.t
3437
*/
3538
abstract class AbstractEnum

0 commit comments

Comments
 (0)