public function sizeToString()
    {
        return $this->type == self::TYPE_FILE
            ? File::sizeToString($this->size)
            : $this->size.' '.trans('system::lang.media.folder_size_items');
    }
public function sizeToString()
    {
        return $this->type == self::TYPE_FILE
            ? File::sizeToString($this->size)
            : $this->size.' '.trans('system::lang.media.folder_size_items');
    }
public function sizeToString ( ) { return $ this -> type == self :: TYPE_FILE ? File :: sizeToString ( $ this -> size ) : $ this -> size . ' ' . trans ( 'system::lang.media.folder_size_items' ) ; }
Returns the item size as string.
For file-type items the size is the number of bytes. For folder-type items
the size is the number of items contained by the item.
@return string Returns the size as string.
Returns the item size as string . For file - type items the size is the number of bytes . For folder - type items the size is the number of items contained by the item .