Skip to content

Commit 12f65ec

Browse files
committed
updated README file
1 parent 37a5b1f commit 12f65ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ function setAction(Action $action) {
5656
- `__construct()` The constructor checks that the value exist in the enum
5757
- `__toString()` You can `echo $myValue`, it will display the enum value (value of the constant)
5858
- `getValue()` Returns the current value of the enum
59-
- `toArray()` (static) Returns an array of all possible values (constant name in key, constant value in value)
59+
- `getKey()` Returns the key of the current value on Enum
60+
- `keys()` (@static) Returns the names (keys) of all constants in the Enum class
61+
- `values()` (@static) method Returns all possible values as an array (constant name in key, constant value in value)
62+
- `toArray()` (@static and @deprecated) Alias for `values()`
63+
- `isValid()` (@static) Check if tested value is valid on enum set
64+
- `isValidKey()` (@static) Check if tested key is valid on enum set
65+
- `search()` Return key for searched value
6066

6167
### Static methods
6268

0 commit comments

Comments
 (0)