Skip to content

Commit

Permalink
Improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Jan 30, 2015
1 parent 5c6d53e commit c0bcd73
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ function setAction(Action $action) {
- `__toString()` You can `echo $myValue`, it will display the enum value (value of the constant)
- `getValue()` Returns the current value of the enum
- `getKey()` Returns the key of the current value on Enum
- `keys()` (@static) Returns the names (keys) of all constants in the Enum class
- `toArray()` (@static) method Returns all possible values as an array (constant name in key, constant value in value)
- `isValid()` (@static) Check if tested value is valid on enum set
- `isValidKey()` (@static) Check if tested key is valid on enum set

Static methods:

- `toArray()` method Returns all possible values as an array (constant name in key, constant value in value)
- `keys()` Returns the names (keys) of all constants in the Enum class
- `isValid()` Check if tested value is valid on enum set
- `isValidKey()` Check if tested key is valid on enum set
- `search()` Return key for searched value

### Static methods
Expand Down

0 comments on commit c0bcd73

Please sign in to comment.