Adldap\Query\Builder::orWhere PHP Method

orWhere() public method

Adds an or where clause to the current query.
public orWhere ( string $field, string | null $operator = null, string | null $value = null ) : Builder
$field string
$operator string | null
$value string | null
return Builder
    public function orWhere($field, $operator = null, $value = null)
    {
        return $this->where($field, $operator, $value, 'or');
    }

Usage Example

示例#1
0
 /**
  * Adds an orWhere clause to the current query.
  *
  * @param string $field
  * @param string $operator
  * @param string $value
  *
  * @return $this
  */
 public function orWhere($field, $operator = null, $value = null)
 {
     $this->query->orWhere($field, $operator, $value);
     return $this;
 }