Skip to content

Commit

Permalink
Merge 3305c3a into f6f37de
Browse files Browse the repository at this point in the history
  • Loading branch information
c-harris committed May 19, 2020
2 parents f6f37de + 3305c3a commit 9d0b039
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/BitMask.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ protected function isFlag(int $flag): bool
return 0 === $flag ? 0 === $this->value : (($this->value & $flag) == $flag);
}

protected function isComponantOfFlag(not $flag): bool
{
return 0 === $flag ? 0 === $this->value : (($this->value & $flag) == $this->value);
}

protected function setFlag(int $flag, bool $value)
{
if ($value) {
Expand Down

0 comments on commit 9d0b039

Please sign in to comment.