server = $server; $this->cursorId = $cursorId; } // Iterator methods... /** * @see Cursor::getId() */ public function getId() { return $this->cursorId; } /** * @see Cursor::getServer() */ public function getServer() { return $this->server; } /** * @see Cursor::isDead() */ public function isDead() { // Return whether the cursor is exhausted and has no more results } /** * @see Cursor::setBatchSize() */ public function setBatchSize($batchSize) { $this->batchSize = (integer) $batchSize; } }