This cursor needs a firstBatch, just like the CommandCursor

This commit is contained in:
Hannes Magnusson
2014-06-30 13:07:06 -07:00
parent e46ad7bcbe
commit 82c951e32e

View File

@@ -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;
}
/**