Skip to content

1.3.0

Compare
Choose a tag to compare
@mnapoli mnapoli released this 30 Jan 22:08
· 213 commits to master since this release

A bunch of new methods were added in #5:

  • $value->getKey() Returns the key of the current value on Enum
  • Enum::keys() Returns the names (keys) of all constants in the Enum class
  • Enum::isValid() Check if tested value is valid on enum set
  • Enum::isValidKey() Check if tested key is valid on enum set
  • Enum::search() Return key for searched value

The library is now PSR-4 compliant.