yii\mongodb\file\Collection::getChunkCollection PHP Метод

getChunkCollection() публичный Метод

Returns the MongoDB collection for the file chunks.
public getChunkCollection ( boolean $refresh = false ) : Collection
$refresh boolean whether to reload the collection instance even if it is found in the cache.
Результат yii\mongodb\Collection mongo collection instance.
    public function getChunkCollection($refresh = false)
    {
        if ($refresh || !is_object($this->_chunkCollection)) {
            $this->_chunkCollection = Yii::createObject(['class' => 'yii\\mongodb\\Collection', 'database' => $this->database, 'name' => $this->getPrefix() . '.chunks']);
        }
        return $this->_chunkCollection;
    }