private function errorIfClosed() { if ($this->closed) { throw MongoDBException::documentManagerClosed(); } }