Releases: reinder83/binary-flags
Releases · reinder83/binary-flags
Maintenance release PHP 8+
Minor fixes
- Moved
$currentPos
variable from trait to abstract class - Update readme
Move interfaces from trait to abstract
- Moved the countable, iteratable and jsonserializable methods to the abstract method, so it doesn't interfere with other classes that use the trait instead of extending from the abstract class.
- Update Eloquent model example in readme
Add iterable, countable, and jsonSerializable
This release makes it possible iterate over the set flags, do a count()
to return the number of set flags and add support to json_encode
the BinaryFlags object
Add static methods
Add static method getAllFlags
Add static method getAllFlagsMask
checkAnyFlag
- Added checkAnyFlag method
- Minor readme updates
Final release
Updated unittests to have 100% code completion.
Version 0.5
Updated readme and Bits notation
Trait support
- Added Trait support
- Travis and CodeCoverage fixes
Added bits class
Added a useful Bits class, which holds BIT constants, so you can assign your flags more easily