public function hasFlag($flags)
    {
        $mask = $this->getMaskFromFlags($flags);

        return ($this->bitmask & $mask) === $mask;
    }
public function hasFlag($flags)
    {
        $mask = $this->getMaskFromFlags($flags);

        return ($this->bitmask & $mask) === $mask;
    }
public function hasFlag ( $ flags ) { $ mask = $ this -> getMaskFromFlags ( $ flags ) ; return ( $ this -> bitmask & $ mask ) === $ mask ; }
Check if the NamedBitmask contains a given flag.

Check more than one flag at a time by passing flags as an array.

@param  mixed $flags The flag to check as a string, or multiple flags as an array
@return bool  The result of the check
Check if the NamedBitmask contains a given flag .