Method |
Description |
|
__construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_Mime_Grammar $grammar, array $mimeTypes = [] ) |
Create a new Attachment with $headers, $encoder and $cache. |
|
getDisposition ( ) : string |
Get the Content-Disposition of this attachment. |
|
getFilename ( ) : string |
Get the filename of this attachment when downloaded. |
|
getNestingLevel ( ) : integer |
Get the nesting level used for this attachment. |
|
getSize ( ) : integer |
Get the file size of this attachment. |
|
setDisposition ( string $disposition ) : Swift_Mime_Attachment |
Set the Content-Disposition of this attachment. |
|
setFile ( Swift_FileStream $file, string $contentType = null ) : Swift_Mime_Attachment |
Set the file that this attachment is for. |
|
setFilename ( string $filename ) : Swift_Mime_Attachment |
Set the filename of this attachment. |
|
setSize ( integer $size ) : Swift_Mime_Attachment |
Set the file size of this attachment. |
|