public function getMongoCollection()
    {
        if (empty($this->collection)) {
            $mongoCollectionClassName = $this->mongoCollectionClassName;
            $this->collection = new $mongoCollectionClassName(
                $this->database->getMongoDB(),
                $this->collectionName
            );
        }

        return $this->collection;
    }
public function getMongoCollection()
    {
        if (empty($this->collection)) {
            $mongoCollectionClassName = $this->mongoCollectionClassName;
            $this->collection = new $mongoCollectionClassName(
                $this->database->getMongoDB(),
                $this->collectionName
            );
        }

        return $this->collection;
    }
public function getMongoCollection ( ) { if ( empty ( $ this -> collection ) ) { $ mongoCollectionClassName = $ this -> mongoCollectionClassName ; $ this -> collection = new $ mongoCollectionClassName ( $ this -> database -> getMongoDB ( ) , $ this -> collectionName ) ; } return $ this -> collection ; }
Get native collection instance of mongo driver

@return \MongoCollection
Get native collection instance of mongo driver