server = $server; $this->cursorId = $cursorId; } /** * Returns the CursorId * * @return CursorId */ public function getId() { return $this->cursorId; } /** * Returns the Server Object that this cursor is attached to * * @return Server Server from which the cursor originated */ public function getServer() { return $this->server; } /** * Checks if a cursor is still alive * * @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 } /** * Sets a batchsize for the cursor * * @param integer $batchSize * @return boolean true on success, false on failure */ 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() {} }