public function insertChunk($chunk)
    {
        if ( ! $this->checkedIndexes) {
            $this->ensureIndexes();
        }

        $this->chunksCollection->insertOne($chunk);
    }
public function insertChunk($chunk)
    {
        if ( ! $this->checkedIndexes) {
            $this->ensureIndexes();
        }

        $this->chunksCollection->insertOne($chunk);
    }
public function insertChunk ( $ chunk ) { if ( ! $ this -> checkedIndexes ) { $ this -> ensureIndexes ( ) ; } $ this -> chunksCollection -> insertOne ( $ chunk ) ; }
Inserts a document into the chunks collection.

@param array|object $chunk Chunk document
Inserts a document into the chunks collection .