src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/MaskBuilder.php
public function has($mask)
    {
        if (is_string($mask) && defined($name = 'static::MASK_'.strtoupper($mask))) {
            $mask = constant($name);
        } elseif (!is_int($mask)) {
            throw new InvalidArgumentException('$mask must be an integer.');
        }

        return ($this->mask & $mask) != 0;
    }
public function has($mask)
    {
        if (is_string($mask) && defined($name = 'static::MASK_'.strtoupper($mask))) {
            $mask = constant($name);
        } elseif (!is_int($mask)) {
            throw new InvalidArgumentException('$mask must be an integer.');
        }

        return ($this->mask & $mask) != 0;
    }
public function has ( $ mask ) { if ( is_string ( $ mask ) && defined ( $ name = 'static::MASK_' . strtoupper ( $ mask ) ) ) { $ mask = constant ( $ name ) ; } elseif ( ! is_int ( $ mask ) ) { throw new InvalidArgumentException ( '$mask must be an integer.' ) ; } return ( $ this -> mask & $ mask ) != 0 ; }
Checks if a specific permission or mask value is set in the current mask

@param string|int $mask

@throws InvalidArgumentException

@return bool
Checks if a specific permission or mask value is set in the current mask