Releases: MarkBaker/EnumHelper
Releases · MarkBaker/EnumHelper
1.0.2
- Added
CasesIndexedByName
trait, providing a casesIndexedByName()
method to return an associative array of cases with the case name as the index, rather than an enumerated array that is returned by cases()
.
1.0.1
1.0.1 - 2021-12-08
- Added
EnumValidatableCase
trait, providing an isValidCase()
method to validate a string value against the set of case names defined for an enum.