PHP Class Sulu\Bundle\ContactBundle\Api\AccountContact

Inheritance: extends Sulu\Component\Rest\ApiWrapper
Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( AccountContact $accountContact, string $locale )
getAccount ( ) : Account Get account.
getContact ( ) : Contact Get contact.
getId ( ) : integer Get id.
getMain ( ) : boolean Get main.
getPosition ( ) : string Get position.
setAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) : AccountContact Set account.
setContact ( Contact $contact ) : AccountContact Set contact.
setMain ( boolean $main ) : AccountContact Set main.
setPosition ( string $position ) : AccountContact Set position.

Method Details

__construct() public method

public __construct ( AccountContact $accountContact, string $locale )
$accountContact Sulu\Bundle\ContactBundle\Entity\AccountContact
$locale string The locale of this product

getAccount() public method

Get account.
public getAccount ( ) : Account
return Account

getContact() public method

Get contact.
public getContact ( ) : Contact
return Sulu\Bundle\ContactBundle\Entity\Contact

getId() public method

Get id.
public getId ( ) : integer
return integer

getMain() public method

Get main.
public getMain ( ) : boolean
return boolean

getPosition() public method

Get position.
public getPosition ( ) : string
return string

setAccount() public method

Set account.
public setAccount ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) : AccountContact
$account Sulu\Bundle\ContactBundle\Entity\AccountInterface
return AccountContact

setContact() public method

Set contact.
public setContact ( Contact $contact ) : AccountContact
$contact Sulu\Bundle\ContactBundle\Entity\Contact
return AccountContact

setMain() public method

Set main.
public setMain ( boolean $main ) : AccountContact
$main boolean
return AccountContact

setPosition() public method

Set position.
public setPosition ( string $position ) : AccountContact
$position string
return AccountContact