Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Releases: eloquent/enumeration

6.0.0

22 Nov 02:51
Compare
Choose a tag to compare
  • [BC BREAK] Dropped support for PHP < 7.1.
  • [IMPROVED] Support for non-public enumeration constants (#24, #26) (thanks @Bilge).

5.1.1

03 Nov 22:25
Compare
Choose a tag to compare
  • [IMPROVED] Use static in docblocks for better IDE hints (#20) (thanks
    @Bilge).
  • [MAINTENANCE] General repository maintenance

5.1.0

09 Oct 01:20
Compare
Choose a tag to compare
  • [NEW] Implemented memberOrNullBy() and variants

5.0.1

29 Jan 09:36
Compare
Choose a tag to compare
  • [MAINTENANCE] General repository maintenance

5.0.0

11 Nov 02:58
Compare
Choose a tag to compare
  • [BC BREAK] Renamed classes:
    • Multiton -> AbstractMultiton
    • Enumeration -> AbstractEnumeration
  • [BC BREAK] Exceptions no longer extend LogicException, but instead
    directly extend from the base Exception class.
  • [NEW] Implemented AbstractValueMultiton, an an abstract base class for
    implementing multitons with values. AbstractEnumeration now extends from
    this base class.
  • [NEW] Implemented AbstractUndefinedMemeberException, an abstract base
    class for implementing custom undefined member exceptions.
    UndefinedMemberException now extends from this base class.
  • [NEW] Multiton instances now implement formal interfaces:
    • AbstractMultiton instances implement MultitonInterface.
    • AbstractValueMultiton instances implement ValueMultitonInterface.
    • AbstractEnumeration instances implement EnumerationInterface.
  • [NEW] Implemented membersBy() and membersByPredicate() which help to
    retrieve sets of members by various criteria.

4.0.0

13 Aug 11:21
Compare
Choose a tag to compare
  • [BC BREAK] Multiton method name changes:
    • multitonInstances -> members
    • instanceByKey -> memberByKey
    • instanceBy -> memberBy
    • instanceByPredicate -> memberByPredicate
    • initializeMultiton -> initializeMembers
    • registerMultiton -> registerMember
    • createUndefinedInstanceException -> createUndefinedMemberException
  • [BC BREAK] Enumeration method name changes:
    • instanceByValue -> memberByValue
  • [BC BREAK] Renamed classes:
    • UndefinedInstanceException -> UndefinedMemberException
    • UndefinedInstanceExceptionInterface -> UndefinedMemberExceptionInterface
  • [NEW] Case insensitive options for member search methods
  • [NEW] Defaulting variants of member search methods
  • [MAINTENANCE] General repository maintenance

3.0.2

13 Aug 11:15
Compare
Choose a tag to compare
  • [NEW] Archer integration
  • [NEW] Implemented changelog

3.0.1

13 Aug 11:15
Compare
Choose a tag to compare
Fixing namespacing issues. Relates to #13.

3.0.0

13 Aug 11:16
Compare
Choose a tag to compare
Implemented customizable exception. Closes #13.

2.1.2

13 Aug 11:16
Compare
Choose a tag to compare
Updated composer lock file.