Class EmailContact

Class EmailContact

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

EmailContact implements EmailContactInterface

Methods summary

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

Constructor

public __toString( void ) : string

Return contact information as a string.

public getEmailAddress( void ) : string

Returns an email address.

public setEmailAddress( EmailAddressInterface $emailAddress )

Sets an email address.

public getContactName( void ) : string

Returns the contact name of an email.

public setContactName( ContactNameInterface $contactName )

Sets the contact name of an email.

public getContactType( void ) : ContactTypeInterface

Returns the contact type of an email.

public setContactType( ContactTypeInterface $contactType )

Sets the contact type of an email.

Properties summary

protected $emailAddress : EmailAddressInterface

E-Mail address.


		
protected $contactType : ContactTypeInterface

E-Mail contact type.


		
protected $contactName : ContactNameInterface

E-Mail contact name.