yii\mongodb\file\StreamWrapper::stream_stat PHP Метод

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

This method is called in response to stat().
См. также: stat()
public stream_stat ( ) : array
Результат array file statistic information.
    public function stream_stat()
    {
        $statistics = $this->fileStatisticsTemplate();
        if ($this->download !== null) {
            $statistics[7] = $statistics['size'] = $this->download->getSize();
        }
        if ($this->upload !== null) {
            $statistics[7] = $statistics['size'] = $this->pointerOffset;
        }
        return $statistics;
    }