private function getMongoClient() {
        if ($this->mongoClient === null) {
            try {
                $this->mongoClient = new MongoClient($this->params['server'], $this->params['options']);
            } catch (MongoException $e) {
                throw new DatabaseException('Could not connect to database', 500, $e);
            }
        }

        return $this->mongoClient;
    }
private function getMongoClient() {
        if ($this->mongoClient === null) {
            try {
                $this->mongoClient = new MongoClient($this->params['server'], $this->params['options']);
            } catch (MongoException $e) {
                throw new DatabaseException('Could not connect to database', 500, $e);
            }
        }

        return $this->mongoClient;
    }
private function getMongoClient ( ) { if ( $ this -> mongoClient === null ) { try { $ this -> mongoClient = new MongoClient ( $ this -> params [ 'server' ] , $ this -> params [ 'options' ] ) ; } catch ( MongoException $ e ) { throw new DatabaseException ( 'Could not connect to database' , 500 , $ e ) ; } } return $ this -> mongoClient ; }
Get the mongo client instance

@return MongoClient
Get the mongo client instance