src/LdapTools/Query/Operator/bNot.php
protected function isOperatorAllowed(BaseOperator $operator)
    {
        if (!empty($this->children)) {
            throw new \RuntimeException('The "Not" operator can only have 1 child operator.');
        }
        if ($operator instanceof ContainsOperatorsInterface) {
            throw new LdapQueryException('Cannot add an operator to bNot that can contain other operators.');
        }
    }
protected function isOperatorAllowed(BaseOperator $operator)
    {
        if (!empty($this->children)) {
            throw new \RuntimeException('The "Not" operator can only have 1 child operator.');
        }
        if ($operator instanceof ContainsOperatorsInterface) {
            throw new LdapQueryException('Cannot add an operator to bNot that can contain other operators.');
        }
    }
protected function isOperatorAllowed ( BaseOperator $ operator ) { if ( ! empty ( $ this -> children ) ) { throw new \ RuntimeException ( 'The "Not" operator can only have 1 child operator.' ) ; } if ( $ operator instanceof ContainsOperatorsInterface ) { throw new LdapQueryException ( 'Cannot add an operator to bNot that can contain other operators.' ) ; } }
The 'Not' operator has a few specific requirements. Check these here.

@param BaseOperator $operator
@throws LdapQueryException
The Not operator has a few specific requirements . Check these here .