src/Query/Builder.php
private function assembleQuery()
    {
        $this->assembleWheres();

        $this->assembleOrWheres();

        /*
         * Make sure we wrap the query in an 'and'
         * if using multiple wheres or if we have any
         * orWheres. For example (&(cn=John*)(|(description=User*)))
         */
        if (count($this->getWheres()) > 1 || count($this->getOrWheres()) > 0) {
            $this->setQuery($this->buildAnd($this->getQuery()));
        }
    }
private function assembleQuery()
    {
        $this->assembleWheres();

        $this->assembleOrWheres();

        /*
         * Make sure we wrap the query in an 'and'
         * if using multiple wheres or if we have any
         * orWheres. For example (&(cn=John*)(|(description=User*)))
         */
        if (count($this->getWheres()) > 1 || count($this->getOrWheres()) > 0) {
            $this->setQuery($this->buildAnd($this->getQuery()));
        }
    }
private function assembleQuery ( ) { $ this -> assembleWheres ( ) ; $ this -> assembleOrWheres ( ) ; /*
         * Make sure we wrap the query in an 'and'
         * if using multiple wheres or if we have any
         * orWheres. For example (&(cn=John*)(|(description=User*)))
         */ if ( count ( $ this -> getWheres ( ) ) > 1 || count ( $ this -> getOrWheres ( ) ) > 0 ) { $ this -> setQuery ( $ this -> buildAnd ( $ this -> getQuery ( ) ) ) ; } }
Returns an assembled query using the current object parameters.

@return string
Returns an assembled query using the current object parameters .