You are here

public function MongoDebugCollection::__construct in MongoDB 6

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

Constructor.

Parameters

MongoCollection $collection: The collection to wrap.

File

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

Class

MongoDebugCollection
Class MongoDebugCollection wraps a MongoCollection with debug() instructions.

Code

public function __construct(MongoCollection $collection) {
  $this->collection = $collection;
}