This repository has been archived by the owner on Jul 8, 2023. It is now read-only.
Releases: eloquent/enumeration
Releases · eloquent/enumeration
6.0.0
5.1.1
5.1.0
5.0.1
5.0.0
- [BC BREAK] Renamed classes:
Multiton
->AbstractMultiton
Enumeration
->AbstractEnumeration
- [BC BREAK] Exceptions no longer extend
LogicException
, but instead
directly extend from the baseException
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 implementMultitonInterface
.AbstractValueMultiton
instances implementValueMultitonInterface
.AbstractEnumeration
instances implementEnumerationInterface
.
- [NEW] Implemented
membersBy()
andmembersByPredicate()
which help to
retrieve sets of members by various criteria.
4.0.0
- [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