LdapTools\Query\LdapQueryBuilder::orWhere PHP Метод

orWhere() публичный Метод

Create a logical 'or' from the passed arguments. Either pass a key => value array with attribute names and expected values (which will be compared in terms of equality) or pass arbitrary Operator objects using the 'filter' method shortcuts or some other way.
public orWhere ( $whereStatements )
$whereStatements Either a key => value array or an Operator type objects.
    public function orWhere(...$whereStatements)
    {
        $this->addBaseOrIfNotExists();
        if (1 == count($whereStatements) && is_array($whereStatements[0])) {
            foreach ($whereStatements[0] as $attribute => $value) {
                $this->baseOr->add($this->filterBuilder->eq($attribute, $value));
            }
        } else {
            $this->baseOr->add(...$whereStatements);
        }
        return $this;
    }