public function __construct(\MongoClient $mongoClient, $dbName, $collName) { $this->mongoClient = $mongoClient; $this->dbName = $dbName; $this->collName = $collName; }