Skip to content

v1.0.0-beta2

Pre-release
Pre-release
Compare
Choose a tag to compare
@marc-mabe marc-mabe released this 23 Sep 15:36
· 369 commits to master since this 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()
  • 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