yii\mongodb\file\StreamWrapper::stream_stat PHP Method

stream_stat() public method

This method is called in response to stat().
See also: stat()
public stream_stat ( ) : array
return 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;
    }