Skip to content

Commit

Permalink
Merge pull request #9 from reinder83/update-readme-variable-fix
Browse files Browse the repository at this point in the history
Update readme and move variable from trait to abstract
  • Loading branch information
remenic committed Aug 1, 2019
2 parents f29be71 + 445fc2d commit a599929
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![Build Status](https://travis-ci.org/reinder83/binary-flags.svg?branch=master)](https://travis-ci.org/reinder83/binary-flags)
[![Coverage Status](https://coveralls.io/repos/github/reinder83/binary-flags/badge.svg?branch=master&v=1)](https://coveralls.io/github/reinder83/binary-flags?branch=master)

[![Build Status][build-icon]][build-link]
[![Coverage Status][coverage-icon]][coverage-link]

# BinaryFlags
With this class you can easily add flags to your projects.
Expand Down Expand Up @@ -236,3 +235,13 @@ $test->flags->checkFlag(ExampleFlag::FOO);

## Support
For bugs or feature requests feel free to contact me or submit an issue or pull request.
Or you can support me by buying me a coffee:

[![Buy me a coffee][buymeacoffee-icon]][buymeacoffee-link]

[build-icon]: https://travis-ci.org/reinder83/binary-flags.svg?branch=master
[build-link]: https://travis-ci.org/reinder83/binary-flags
[coverage-icon]: https://coveralls.io/repos/github/reinder83/binary-flags/badge.svg?branch=master&v=1
[coverage-link]: https://coveralls.io/github/reinder83/binary-flags?branch=master
[buymeacoffee-icon]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg
[buymeacoffee-link]: https://www.buymeacoffee.com/reinder83
5 changes: 5 additions & 0 deletions src/BinaryFlags.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ abstract class BinaryFlags implements Iterator, Countable, JsonSerializable
{
use Traits\BinaryFlags;

/**
* @var int
*/
private $currentPos = 0;

/**
* Initiate class
* @param int [$mask = 0]
Expand Down
5 changes: 0 additions & 5 deletions src/Traits/BinaryFlags.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ trait BinaryFlags
*/
protected $onModifyCallback;

/**
* @var int
*/
private $currentPos = 0;

/**
* Return an array with all flags as key with a name as description
*
Expand Down

0 comments on commit a599929

Please sign in to comment.