EmailContact

Implements \EmailContactInterface

Class EmailContact

Represents a contact (sender/recipient) that participates in an email entity.

category

System

package

Email

subpackage

Entities

Methods

Constructor

__construct(\EmailAddressInterface $emailAddress = null, \ContactTypeInterface $contactType = null, \ContactNameInterface $contactName = null) 

Arguments

$emailAddress

\EmailAddressInterface

(optional) E-Mail address.

$contactType

\ContactTypeInterface

(optional) E-Mail contact name.

$contactName

\ContactNameInterface

(optional) E-Mail contact type.

Return contact information as a string.

__toString() : string

Example Output: 'John Doe email@address.com'

Response

string

Converted string.

Returns the contact name of an email.

getContactName() : string

Response

string

E-Mail contact name.

Returns the contact type of an email.

getContactType() : \ContactTypeInterface

Response

\ContactTypeInterface

E-Mail contact type.

Returns an email address.

getEmailAddress() : string

Response

string

E-Mail address.

Sets the contact name of an email.

setContactName(\ContactNameInterface $contactName) 

Arguments

$contactName

\ContactNameInterface

E-Mail contact name.

Sets the contact type of an email.

setContactType(\ContactTypeInterface $contactType) 

Arguments

$contactType

\ContactTypeInterface

E-Mail contact type.

Sets an email address.

setEmailAddress(\EmailAddressInterface $emailAddress) 

Arguments

$emailAddress

\EmailAddressInterface

E-Mail address.

Properties

E-Mail address.

emailAddress : \EmailAddressInterface

E-Mail contact type.

contactType : \ContactTypeInterface
var

Type(s)

\ContactTypeInterface

E-Mail contact name.

contactName : \ContactNameInterface
var

Type(s)

\ContactNameInterface