Implement ideas from RFC Enumerations:
- New: Add protected method
match()
. - New: Add factory method
tryFrom()
. - New: Add method
getName()
. - Chg: Remove immutability objects.
- Chg: Rename methods
toObjects()
tocases()
andtoValues()
tovalues()
. - Chg: Use private constants in enum object.
- Chg: On create object via method
from()
with invalid value throwsValueError
insteadUnexpectedValueException
.
- Chg: Rewrite the package from scratch.
- New: Add support static methods of current object in filters.
- New: Add static method
get()
that returns object by its identifier.
- Chg: Property
$value
renamed to$id
. - Chg: Method
toValues()
renamed totoIds()
.
- New: Add support operator
in
in filters.
- Bug: Fixed problem with values type casting to integer.
- New: Add method
toObjects()
.
- Initial release.