src/AbstractConstant.php
public function valueMatchesBitmask($mask)
    {
        if (!is_integer($this->value())) {
            throw new Exception\NonIntegerValueException($this->value());
        }

        return $this->value() === ($this->value() & $mask);
    }
public function valueMatchesBitmask($mask)
    {
        if (!is_integer($this->value())) {
            throw new Exception\NonIntegerValueException($this->value());
        }

        return $this->value() === ($this->value() & $mask);
    }
public function valueMatchesBitmask ( $ mask ) { if ( ! is_integer ( $ this -> value ( ) ) ) { throw new Exception \ NonIntegerValueException ( $ this -> value ( ) ) ; } return $ this -> value ( ) === ( $ this -> value ( ) & $ mask ) ; }
Returns true if this constant's value matches the supplied bitmask.

@param integer $mask The mask to test against.

@return boolean                            True if the value matches.
@throws Exception\NonIntegerValueException If this constant's value is not an integer.
Returns true if this constant s value matches the supplied bitmask .