server = $server; $this->cursorId = $cursorId; } /** * @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; } /* Cursor is an iterator */ public function current() {} public function next() {} public function key() {} public function valid() {} public function rewind() {} }