PHP Class Sulu\Bundle\ContactBundle\Entity\Email

Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) : Email Add accounts.
addContact ( Sulu\Component\Contact\Model\ContactInterface $contacts ) : Email Add contacts.
getAccounts ( ) : Doctrine\Common\Collections\Collection Get accounts.
getContacts ( ) : Doctrine\Common\Collections\Collection Get contacts.
getEmail ( ) : string Get email.
getEmailType ( ) : EmailType Get emailType.
getId ( ) : integer Get id.
removeAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) Remove accounts.
removeContact ( Sulu\Component\Contact\Model\ContactInterface $contacts ) Remove contacts.
setEmail ( string $email ) : Email Set email.
setEmailType ( EmailType $emailType ) : Email Set emailType.

Method Details

__construct() public method

Constructor.
public __construct ( )

addAccount() public method

Add accounts.
public addAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) : Email
$account Sulu\Bundle\ContactBundle\Entity\AccountInterface
return Email

addContact() public method

Add contacts.
public addContact ( Sulu\Component\Contact\Model\ContactInterface $contacts ) : Email
$contacts Sulu\Component\Contact\Model\ContactInterface
return Email

getAccounts() public method

Get accounts.
public getAccounts ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getContacts() public method

Get contacts.
public getContacts ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getEmail() public method

Get email.
public getEmail ( ) : string
return string

getEmailType() public method

Get emailType.
public getEmailType ( ) : EmailType
return EmailType

getId() public method

Get id.
public getId ( ) : integer
return integer

removeAccount() public method

Remove accounts.
public removeAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account )
$account Sulu\Bundle\ContactBundle\Entity\AccountInterface

removeContact() public method

Remove contacts.
public removeContact ( Sulu\Component\Contact\Model\ContactInterface $contacts )
$contacts Sulu\Component\Contact\Model\ContactInterface

setEmail() public method

Set email.
public setEmail ( string $email ) : Email
$email string
return Email

setEmailType() public method

Set emailType.
public setEmailType ( EmailType $emailType ) : Email
$emailType EmailType
return Email