/** * Disconnect from the underlying MongoClient connection. */ public function disconnect() { $this->connection->close(); }
/** * Wrapper method for MongoClient::close(). * * @see http://php.net/manual/en/mongoclient.close.php * @return boolean */ public function close() { $this->initialize(); return $this->mongoClient->close(); }