server = $server; $this->cursorId = (integer) $cursorId; } // Iterator methods... /** * @see \MongoDB\Cursor::getId() */ public function getId() { return $this->cursorId; } /** * @see \MongoDB\ServerResult::getServer() */ public function getServer() { return $this->server; } /** * @see \MongoDB\Cursor::setBatchSize() */ public function setBatchSize($batchSize) { $this->batchSize = (integer) $batchSize; } }