From 82c951e32efc8dae1965d453cd7f3eac683fb200 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Mon, 30 Jun 2014 13:07:06 -0700 Subject: [PATCH] This cursor needs a firstBatch, just like the CommandCursor --- docs/api/MongoDB/Query/QueryCursor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/api/MongoDB/Query/QueryCursor.php b/docs/api/MongoDB/Query/QueryCursor.php index 4217f202..ccf7990e 100644 --- a/docs/api/MongoDB/Query/QueryCursor.php +++ b/docs/api/MongoDB/Query/QueryCursor.php @@ -26,11 +26,13 @@ final class QueryCursor implements Cursor * * @param Server $server * @param CursorId $cursorId + * @param array $firstBatch */ - public function __construct(Server $server, CursorId $cursorId) + public function __construct(Server $server, CursorId $cursorId, array $firstBatch) { $this->server = $server; $this->cursorId = $cursorId; + $this->firstBatch = $firstBatch; } /**