PHP Class Sulu\Bundle\ContactBundle\Api\ContactAddress

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

Public Methods

Method Description
__construct ( ContactAddress $address )
getAddress ( ) : Address Get address.
getId ( ) : integer Returns the id of the product.
getMain ( ) : boolean Get main.
setAddress ( Address $address ) : ContactAddress Set address.
setMain ( boolean $main ) : ContactAddress Set main.

Method Details

__construct() public method

public __construct ( ContactAddress $address )
$address Sulu\Bundle\ContactBundle\Entity\ContactAddress

getAddress() public method

Get address.
public getAddress ( ) : Address
return Sulu\Bundle\ContactBundle\Entity\Address

getId() public method

Returns the id of the product.
public getId ( ) : integer
return integer

getMain() public method

Get main.
public getMain ( ) : boolean
return boolean

setAddress() public method

Set address.
public setAddress ( Address $address ) : ContactAddress
$address Sulu\Bundle\ContactBundle\Entity\Address
return ContactAddress

setMain() public method

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