public function path(string $thumbSize = null)
    {
        return $this->attributes['type']
            .DS.$this->attributes['category']
            .($thumbSize ? DS.$thumbSize : '')
            .DS.$this->attributes['name'].'.'.$this->attributes['extension'];
    }
public function path(string $thumbSize = null)
    {
        return $this->attributes['type']
            .DS.$this->attributes['category']
            .($thumbSize ? DS.$thumbSize : '')
            .DS.$this->attributes['name'].'.'.$this->attributes['extension'];
    }
public function path ( string $ thumbSize = null ) { return $ this -> attributes [ 'type' ] . DS . $ this -> attributes [ 'category' ] . ( $ thumbSize ? DS . $ thumbSize : '' ) . DS . $ this -> attributes [ 'name' ] . '.' . $ this -> attributes [ 'extension' ] ; }
Get path to file.
Used in `BBCMS\Models\Mutators\FileMutators` and `BBCMS\Models\Observers\FileObserver`.

@param  string|null $thumbSize Thumbnail size for the image file.
@return string
Get path to file . Used in BBCMS \ Models \ Mutators \ FileMutators and BBCMS \ Models \ Observers \ FileObserver .