Skip to content

Commit de80519

Browse files
authored
Fix #91: documentation update
1 parent 74662eb commit de80519

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ class Action extends Enum
4141
## Usage
4242

4343
```php
44-
$action = new Action(Action::VIEW);
45-
46-
// or
4744
$action = Action::VIEW();
45+
46+
// or with a dynamic key:
47+
$action = Action::$key();
48+
// or with a dynamic value:
49+
$action = new Action($value);
4850
```
4951

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

0 commit comments

Comments
 (0)