protected function filename(AttachmentDataInterface $attachment, $variant = '')
    {
        if ($variant) {
            return $attachment->variantFilename($variant);
        }

        return $attachment->originalFilename();
    }
protected function filename(AttachmentDataInterface $attachment, $variant = '')
    {
        if ($variant) {
            return $attachment->variantFilename($variant);
        }

        return $attachment->originalFilename();
    }
protected function filename ( AttachmentDataInterface $ attachment , $ variant = '' ) { if ( $ variant ) { return $ attachment -> variantFilename ( $ variant ) ; } return $ attachment -> originalFilename ( ) ; }
Returns the file name.

@param AttachmentDataInterface $attachment
@param string                  $variant

@return string
Returns the file name .