You are here

public function MongoDummy::selectCollection in MongoDB 6

Pretend to select a collection.

Return value

\MongoDummy A fake collection object.

File

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

Class

MongoDummy
Class MongoDummy is a mock class usable as a database or collection.

Code

public function selectCollection() {
  return new MongoDummy();
}