- added
EnumObject::all()
Enumis no longer instantiable by default- added
EnumObject(which extends fromEnum) that supports instantiation
- simplified many method names
- added
Enum::pair(),Enum::getPair(),Enum::getPairByKey() - removed
EnumInterface
- enum instances can no longer be cloned
Enum::determineKeyToValueMap()is now protected again so it can be overridenEnum::findValueByKey()andEnum::findKeyByValue()returnNULLon failure instead of throwing exceptions- added
Enum::getValueByKey()andEnum::getKeyByValue()which throw exceptions on invalid key/value
- fixed PHP version requirement to PHP 7.1+
- relaxed PHPDoc annotations of value-related
Enummethods
- changed most class members from protected to private
- cs fixes, added codestyle checks
- added
Enum::count()
- ignore private and protected constants
Initial release