public function getDriver()
    {
        if (!$this->_driver) {

            if ($this->_graph) {
                $this->_driver = $this->getGraphHandler();
            } else {
                $this->_driver = $this->getDocumentHandler();
            }
        }

        return $this->_driver;
    }
public function getDriver()
    {
        if (!$this->_driver) {

            if ($this->_graph) {
                $this->_driver = $this->getGraphHandler();
            } else {
                $this->_driver = $this->getDocumentHandler();
            }
        }

        return $this->_driver;
    }
public function getDriver ( ) { if ( ! $ this -> _driver ) { if ( $ this -> _graph ) { $ this -> _driver = $ this -> getGraphHandler ( ) ; } else { $ this -> _driver = $ this -> getDocumentHandler ( ) ; } } return $ this -> _driver ; }
Automatically determines which handler we need and return it.
@return \triagens\ArangoDb\DocumentHandler|\triagens\ArangoDb\GraphHandler
Automatically determines which handler we need and return it .