PHP Class Sulu\Bundle\ContactBundle\Entity\Phone

Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) : Phone Add accounts.
addContact ( Sulu\Component\Contact\Model\ContactInterface $contacts ) : Phone Add contacts.
getAccounts ( ) : Doctrine\Common\Collections\Collection Get accounts.
getContacts ( ) : Doctrine\Common\Collections\Collection Get contacts.
getId ( ) : integer Get id.
getPhone ( ) : string Get phone.
getPhoneType ( ) : PhoneType Get phoneType.
removeAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) Remove accounts.
removeContact ( Sulu\Component\Contact\Model\ContactInterface $contacts ) Remove contacts.
setPhone ( string $phone ) : Phone Set phone.
setPhoneType ( PhoneType $phoneType ) : Phone Set phoneType.

Method Details

__construct() public method

Constructor.
public __construct ( )

addAccount() public method

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

addContact() public method

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

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

getId() public method

Get id.
public getId ( ) : integer
return integer

getPhone() public method

Get phone.
public getPhone ( ) : string
return string

getPhoneType() public method

Get phoneType.
public getPhoneType ( ) : PhoneType
return PhoneType

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

setPhone() public method

Set phone.
public setPhone ( string $phone ) : Phone
$phone string
return Phone

setPhoneType() public method

Set phoneType.
public setPhoneType ( PhoneType $phoneType ) : Phone
$phoneType PhoneType
return Phone