PHP Class Alex\MailCatcher\Message

Author: Alexandre Salomé ([email protected])
Inheritance: extends Alex\MailCatcher\Mime\Message
ファイルを表示 Open project: alexandresalome/mailcatcher Class Usage Examples

Protected Properties

Property Type Description
$attachments array of Attachment
$client Alex\MailCatcher\Client
$createdAt DateTime
$formats array
$id integer
$recipients array of Person
$sender Alex\MailCatcher\Person
$size integer
$subject string
$type string

Public Methods

Method Description
__construct ( Alex\MailCatcher\Client $client, array $data = [] ) Constructor
delete ( ) : string
getAttachments ( ) : array
getContent ( ) : string
getCreatedAt ( ) : DateTime
getFormats ( ) : array
getHeaders ( ) : Alex\MailCatcher\Mime\HeaderBag
getId ( ) : integer
getRecipients ( ) : array
getSender ( ) : Alex\MailCatcher\Person
getSize ( ) : integer
getSubject ( ) : string
getType ( ) : string
hasAttachments ( ) : boolean
hasFormat ( $format ) : boolean
isPlain ( ) : boolean
loadFromArray ( array $array ) : Message
match ( array $criterias ) : boolean

Private Methods

Method Description
hydrate ( )

Method Details

__construct() public method

Constructor
public __construct ( Alex\MailCatcher\Client $client, array $data = [] )
$client Alex\MailCatcher\Client
$data array

delete() public method

public delete ( ) : string
return string

getAttachments() public method

public getAttachments ( ) : array
return array array of Attachment

getContent() public method

public getContent ( ) : string
return string

getCreatedAt() public method

public getCreatedAt ( ) : DateTime
return DateTime

getFormats() public method

public getFormats ( ) : array
return array

getHeaders() public method

public getHeaders ( ) : Alex\MailCatcher\Mime\HeaderBag
return Alex\MailCatcher\Mime\HeaderBag

getId() public method

public getId ( ) : integer
return integer

getRecipients() public method

public getRecipients ( ) : array
return array

getSender() public method

public getSender ( ) : Alex\MailCatcher\Person
return Alex\MailCatcher\Person

getSize() public method

public getSize ( ) : integer
return integer

getSubject() public method

public getSubject ( ) : string
return string

getType() public method

public getType ( ) : string
return string

hasAttachments() public method

public hasAttachments ( ) : boolean
return boolean

hasFormat() public method

public hasFormat ( $format ) : boolean
$format
return boolean

isPlain() public method

public isPlain ( ) : boolean
return boolean

loadFromArray() public method

public loadFromArray ( array $array ) : Message
$array array
return Message

match() public method

public match ( array $criterias ) : boolean
$criterias array
return boolean

Property Details

$attachments protected_oe property

array of Attachment
protected $attachments

$client protected_oe property

protected Client,Alex\MailCatcher $client
return Alex\MailCatcher\Client

$createdAt protected_oe property

protected DateTime $createdAt
return DateTime

$formats protected_oe property

protected array $formats
return array

$id protected_oe property

protected int $id
return integer

$recipients protected_oe property

array of Person
protected $recipients

$sender protected_oe property

protected Person,Alex\MailCatcher $sender
return Alex\MailCatcher\Person

$size protected_oe property

protected int $size
return integer

$subject protected_oe property

protected string $subject
return string

$type protected_oe property

protected string $type
return string