PHP Class Sulu\Bundle\ContactBundle\Entity\AddressType

Inheritance: implements JsonSerializable
显示文件 Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addAddress ( Address $addresses ) : AddressType Add addresses.
addAddresse ( Address $addresses ) : AddressType Add addresses.
getAddresses ( ) : Doctrine\Common\Collections\Collection Get addresses.
getId ( ) : integer Get id.
getName ( ) : string Get name.
jsonSerialize ( ) : mixed (PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
removeAddress ( Address $addresses ) Remove addresses.
removeAddresse ( Address $addresses ) Remove addresses.
setId ( integer $id ) To force id = 1 in load fixtures.
setName ( string $name ) : AddressType Set name.

Method Details

__construct() public method

Constructor.
public __construct ( )

addAddress() public method

Add addresses.
public addAddress ( Address $addresses ) : AddressType
$addresses Address
return AddressType

addAddresse() public method

Add addresses.
public addAddresse ( Address $addresses ) : AddressType
$addresses Address
return AddressType

getAddresses() public method

Get addresses.
public getAddresses ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getId() public method

Get id.
public getId ( ) : integer
return integer

getName() public method

Get name.
public getName ( ) : string
return string

jsonSerialize() public method

(PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
public jsonSerialize ( ) : mixed
return mixed data which can be serialized by json_encode, which is a value of any type other than a resource

removeAddress() public method

Remove addresses.
public removeAddress ( Address $addresses )
$addresses Address

removeAddresse() public method

Remove addresses.
public removeAddresse ( Address $addresses )
$addresses Address

setId() public method

To force id = 1 in load fixtures.
public setId ( integer $id )
$id integer

setName() public method

Set name.
public setName ( string $name ) : AddressType
$name string
return AddressType