static public function isValid($operator, $throwException = false)
    {
        $operator = intval($operator);
        if ($operator > 0 && $operator <= static::IS_NOT_NULL) {
            return true;
        }

        if ($throwException) {
            throw new InvalidArgumentException('Unexpected filter operator.');
        }

        return false;
    }
static public function isValid($operator, $throwException = false)
    {
        $operator = intval($operator);
        if ($operator > 0 && $operator <= static::IS_NOT_NULL) {
            return true;
        }

        if ($throwException) {
            throw new InvalidArgumentException('Unexpected filter operator.');
        }

        return false;
    }
static public function isValid ( $ operator , $ throwException = false ) { $ operator = intval ( $ operator ) ; if ( $ operator > 0 && $ operator <= static :: IS_NOT_NULL ) { return true ; } if ( $ throwException ) { throw new InvalidArgumentException ( 'Unexpected filter operator.' ) ; } return false ; }
Returns whether the operator is valid or not.

@param string $operator
@param bool   $throwException

@return bool
Returns whether the operator is valid or not .