You are here

public function MongoDebugCursor::__construct in MongoDB 6

Same name and namespace in other branches
  1. 7 mongodb.module \MongoDebugCursor::__construct()

Constructor.

Parameters

MongoCursor $cursor: The cursor to wrap.

File

./mongodb.module, line 170
A library of common mechanisms for modules using MongoDB.

Class

MongoDebugCursor
Class MongoDebugCursor wraps a cursor with debug() instructions.

Code

public function __construct(MongoCursor $cursor) {
  $this->cursor = $cursor;
}