v1.0.0-beta2
Pre-release
Pre-release
This will be the last beta until 1.0.0 will be stable (hopefully).
(After the first stable will be out we'll never change API until the next major release!)
Changes:
- PHP 5.3 will be required
- Moved to namespaces
- BC break how to instantiate a new enumeration (please read usage information)
- It's no longer possible to define a default value
- You can define a method to instantiate it like
UserStatus::getDefault()
- You can define a method to instantiate it like
- Now instances of the same enumeration holds the same instance (singleton)
- Now
getConstants()
is static
New Features:
- Implemented
EnumMap
- Implemented
EnumSet
- Added ordinal information and make it possible to instantiate it from