server = $server; $this->cursorId = $cursorId; } /** * @return CursorId */ public function getId() { return $this->cursorId; } /** * @return Server Server from which the cursor originated */ public function getServer() { return $this->server; } /** * @return boolean Whether the cursor is exhausted and has no more results */ public function isDead() { // Return whether the cursor is exhausted and has no more results } /** * @param integer $batchSize */ public function setBatchSize($batchSize) { $this->batchSize = (integer) $batchSize; } /* Cursor is an iterator */ public function current() {} public function next() {} public function key() {} public function valid() {} public function rewind() {} }