protected function makeQueryWhenArray(Builder $query, stdClass $rule, array $sqlOperator, array $value, $condition)
    {
        if ($sqlOperator['operator'] == 'IN' || $sqlOperator['operator'] == 'NOT IN') {
            return $this->makeArrayQueryIn($query, $rule, $sqlOperator['operator'], $value, $condition);
        } elseif ($sqlOperator['operator'] == 'BETWEEN' || $sqlOperator['operator'] == 'NOT BETWEEN') {
            return $this->makeArrayQueryBetween($query, $rule, $sqlOperator['operator'], $value, $condition);
        }

        throw new QBParseException('makeQueryWhenArray could not return a value');
    }
protected function makeQueryWhenArray(Builder $query, stdClass $rule, array $sqlOperator, array $value, $condition)
    {
        if ($sqlOperator['operator'] == 'IN' || $sqlOperator['operator'] == 'NOT IN') {
            return $this->makeArrayQueryIn($query, $rule, $sqlOperator['operator'], $value, $condition);
        } elseif ($sqlOperator['operator'] == 'BETWEEN' || $sqlOperator['operator'] == 'NOT BETWEEN') {
            return $this->makeArrayQueryBetween($query, $rule, $sqlOperator['operator'], $value, $condition);
        }

        throw new QBParseException('makeQueryWhenArray could not return a value');
    }
protected function makeQueryWhenArray ( Builder $ query , stdClass $ rule , array $ sqlOperator , array $ value , $ condition ) { if ( $ sqlOperator [ 'operator' ] == 'IN' || $ sqlOperator [ 'operator' ] == 'NOT IN' ) { return $ this -> makeArrayQueryIn ( $ query , $ rule , $ sqlOperator [ 'operator' ] , $ value , $ condition ) ; } elseif ( $ sqlOperator [ 'operator' ] == 'BETWEEN' || $ sqlOperator [ 'operator' ] == 'NOT BETWEEN' ) { return $ this -> makeArrayQueryBetween ( $ query , $ rule , $ sqlOperator [ 'operator' ] , $ value , $ condition ) ; } throw new QBParseException ( 'makeQueryWhenArray could not return a value' ) ; }
makeQuery, for arrays.

Some types of SQL Operators (ie, those that deal with lists/arrays) have specific requirements.
This function enforces those requirements.

@param Builder  $query
@param stdClass $rule
@param array    $sqlOperator
@param array    $value
@param string   $condition

@throws QBParseException

@return Builder
makeQuery for arrays .