PHP Class Jyxo\Mail\Email\Attachment\StringAttachment

Author: Jaroslav Hanslík
Inheritance: extends Jyxo\Mail\Email\Attachment
Mostrar archivo Open project: jyxo/php

Protected Properties

Property Type Description
$disposition string Type.

Public Methods

Method Description
__construct ( string $content, string $name, string $mimeType = 'application/octet-stream', string $encoding = '' ) Creates an attachment.
setEncoding ( string $encoding ) : self Sets contents encoding.

Method Details

__construct() public method

Creates an attachment.
public __construct ( string $content, string $name, string $mimeType = 'application/octet-stream', string $encoding = '' )
$content string FileAttachment contents
$name string Attachment name
$mimeType string Attachment mime-type
$encoding string Source encoding

setEncoding() public method

If none is set, assume no encoding is used.
public setEncoding ( string $encoding ) : self
$encoding string Encoding name
return self

Property Details

$disposition protected_oe property

Type.
protected string $disposition
return string