src/Query/Builder.php
private function getOperator($operator)
    {
        $operators = $this->getOperators();

        $key = array_search(strtolower($operator), $operators);

        if ($key !== false && array_key_exists($key, $operators)) {
            return $operators[$key];
        }

        $operators = implode(', ', $operators);

        $message = "Operator: $operator cannot be used in an LDAP query. Available operators are $operators";

        throw new InvalidQueryOperator($message);
    }
private function getOperator($operator)
    {
        $operators = $this->getOperators();

        $key = array_search(strtolower($operator), $operators);

        if ($key !== false && array_key_exists($key, $operators)) {
            return $operators[$key];
        }

        $operators = implode(', ', $operators);

        $message = "Operator: $operator cannot be used in an LDAP query. Available operators are $operators";

        throw new InvalidQueryOperator($message);
    }
private function getOperator ( $ operator ) { $ operators = $ this -> getOperators ( ) ; $ key = array_search ( strtolower ( $ operator ) , $ operators ) ; if ( $ key !== false && array_key_exists ( $ key , $ operators ) ) { return $ operators [ $ key ] ; } $ operators = implode ( ', ' , $ operators ) ; $ message = "Operator: $operator cannot be used in an LDAP query. Available operators are $operators" ; throw new InvalidQueryOperator ( $ message ) ; }
Retrieves an operator from the available operators.

Throws an AdldapException if no operator is found.

@param $operator

@return string

@throws InvalidQueryOperator
Retrieves an operator from the available operators .