File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,13 @@ function setAction(Action $action) {
56
56
- ` __construct() ` The constructor checks that the value exist in the enum
57
57
- ` __toString() ` You can ` echo $myValue ` , it will display the enum value (value of the constant)
58
58
- ` 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
60
66
61
67
### Static methods
62
68
You can’t perform that action at this time.
0 commit comments