public function disconnect()
    {
        if ($this->_connection) {
            try{
                $this->_connection->close();
            }catch(\Exception $e){
                
            }
            
        }

        $this->_db = $this->_connection = null;
    }
public function disconnect()
    {
        if ($this->_connection) {
            try{
                $this->_connection->close();
            }catch(\Exception $e){
                
            }
            
        }

        $this->_db = $this->_connection = null;
    }
public function disconnect ( ) { if ( $ this -> _connection ) { try { $ this -> _connection -> close ( ) ; } catch ( \ Exception $ e ) { } } $ this -> _db = $ this -> _connection = null ; }
Disconnect from MongoDB

@return null
Disconnect from MongoDB