We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74662eb commit de80519Copy full SHA for de80519
README.md
@@ -41,10 +41,12 @@ class Action extends Enum
41
## Usage
42
43
```php
44
-$action = new Action(Action::VIEW);
45
-
46
-// or
47
$action = Action::VIEW();
+
+// or with a dynamic key:
+$action = Action::$key();
48
+// or with a dynamic value:
49
+$action = new Action($value);
50
```
51
52
As you can see, static methods are automatically implemented to provide quick access to an enum value.
0 commit comments