Adds the inserted field, operator and value
to the orWheres property array.

@param string $field
@param string $operator
@param null   $value

@throws InvalidQueryOperator
356982
private function addOrWhere($field, $operator, $value = null)
    {
        $this->orWheres[] = [
            'field' => $field,
            'operator' => $this->getOperator($operator),
            'value' => $this->connection->escape($value),
        ];
    }
342058
protected function addCriteria( $field, $operator, $value ) {

		$field = trim($field);

		if( !isset($this->criteria[$field]) )
			$this->criteria[$field] = [];

		$this->criteria[$field][$operator] = $value;

		return $this;

	}
1075738
private function setSimpleOperator($operator, $value)
    {
        if (empty($operator)) {
            throw new InvalidArgumentException('The operator must not be null' .
                ' or empty.');
        }

        if (is_null($value) || $value === '') {
            throw new InvalidArgumentException('The value string must not be' .
                ' null or empty');
        }

        $this->simpleOperator = $operator;
        $this->simpleValue = $value;
    }
77434
public function where(string $column, $operator = null, $value = null): BaseQueryRelateContract
    {
        $this->query->where($column, $operator, $value);

        return $this;
    }
664725
public function whereCmp($field, $operator, $value)
    {
        foreach ($this->queries as $query) {
            $query->whereCmp($field, $operator, $value);
        }

        return $this;
    }
884235
public function operator($operator, $value)
    {
        $this->wrapEqualityCriteria();

        if ($this->currentField) {
            $this->query[$this->currentField][$operator] = $value;
        } else {
            $this->query[$operator] = $value;
        }
        return $this;
    }
605907
public function addFilter($field, $value, $operator= '=')
    {
        $this->filter[] = [
          'field' => $field,
          'value' => $value,
          'operator' => $operator,
        ];
        
        return $this;
    }
830785
public function orWhere($column, $operator = null, $value = null)
    {
        [$value, $operator] = $this->prepareValueAndOperator(
            $value, $operator, func_num_args() === 2
        );

        return $this->where($column, $operator, $value, 'or');
    }
340561
public function whereOr($field, $opt=null, $value=null) {
        if ( $field instanceof \Closure ) {
            $this->sqlBuilder->sqlAppend(" OR (");
            $this->sqlBuilder->enterClosure();
            call_user_func($field);
            $this->sqlBuilder->addWhere(") ");
        } else {
            $this->sqlBuilder->addWhere($field, $opt, $value, 'OR');
        }
        return $this;
    }
648425
public function orWhere($field, $operator = null, $value = null)
    {
        $this->query->orWhere($field, $operator, $value);

        return $this;
    }
704177
public function orWhereDate($column, $operator, $value = null)
    {
        $this->wConditions()->orDate(...func_get_args());

        return $this;
    }
63601
public function setFieldOperator(string $field, string $operator = self::OPERATOR_OR): self
    {
        return $this->setFieldParam($field, 'operator', $operator);
    }
51309
public function orWhereTime($column, $operator, $value = null)
    {
        $this->wConditions()->orTime(...func_get_args());

        return $this;
    }
1174960
public function where($field, $operator = null, $value = null, $boolean = 'AND')
    {
        // If the developer is adding multiple where statements together,
        // we will enforce that by adding the approriate boolean.

        if ($this->condition && count($this->condition) > 0) {
            $this->condition[] = $boolean;
        }

        // Here we will make some assumptions about the operator. If only two values
        // are passed in, we will assume the operator is an equals sign. Furthermore,
        // we will identify if the value is null and apply the respective operator.

        list($value, $operator) = $this->prepareValueAndOperator(
            $value, $operator, func_num_args() == 2
        );

        $this->condition[] = [
            'field' => compact('field'),
            'op' => $operator,
            'value' => $value
        ];

        return $this;
    }
261196
public static function expr($field, $operator = null, $value = null) {
        return new Expr($field, $operator, $value);
    }
1244236
public function orWhereDate($column, $operator, $value = null)
    {
        [$value, $operator] = $this->prepareValueAndOperator(
            $value, $operator, func_num_args() === 2
        );

        return $this->whereDate($column, $operator, $value, 'or');
    }
598869
public function orHaving($column, $operator, $value = null)
    {
        $this->hConditions()->orColumn(...func_get_args());

        return $this;
    }