Skip to content

Commit e620c08

Browse files
committed
re-add the constructor example
1 parent 2525fe0 commit e620c08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ $action = Action::VIEW();
5151
$action = Action::$key();
5252
// or with a dynamic value:
5353
$action = Action::from($value);
54+
// or
55+
$action = new Action($value);
5456
```
5557

5658
As you can see, static methods are automatically implemented to provide quick access to an enum value.

0 commit comments

Comments
 (0)