LdapTools\Utilities\ArrayToOperator::processOperatorAndArguments PHP Method

processOperatorAndArguments() protected method

protected processOperatorAndArguments ( mixed $name, mixed $value ) : BaseOperator
$name mixed
$value mixed
return LdapTools\Query\Operator\BaseOperator
    protected function processOperatorAndArguments($name, $value)
    {
        $method = $this->getOperatorMethodName($name);
        if (in_array($method, $this->opMap)) {
            $operator = $this->filterBuilder->{$method}(...$this->parseFilterToOperators($value));
        } else {
            $value = is_array($value) ? $value : [$value];
            $operator = $this->filterBuilder->{$method}(...$value);
        }
        return $operator;
    }