Releases: datomatic/enum-helper
Releases · datomatic/enum-helper
v2.0.0
- add
wrap()
method toEnumFrom
trait - change
EnumUniqueId
toEnumSerialization
trait and change separator to::
- add
EnumLabel
trait if you prefer use ->label() istead of ->desceription() - add new
EnumProperties
trait - general refactoring
- update pest and phpstan versions
- add pint formatting
- update github workflow
v1.1.0
v1.0.0
v0.7.2
v0.7.1
v0.7.0
After migrating several projects with my fellow @RobertoNegro and listening to different opinions we have decided to simplify the package.
From now on, I will consider a pure enum as a StringBackedEnum
with names as values, so all ***AsSelect()
methods will be replaced by ***ByValue()
methods.
- removed all methods
***AsSelect()
- added support on
***ByValue()
methods also for pure enum using name instead value - removed
NotBackedEnum
exception