PHP Class Sulu\Bundle\ContactBundle\Entity\Country

Inheritance: implements JsonSerializable
ファイルを表示 Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addAddress ( Address $addresses ) : Country Add addresses.
addAddresse ( Address $addresses ) : Country Add addresses.
getAddresses ( ) : Doctrine\Common\Collections\Collection Get addresses.
getCode ( ) : string Get code.
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.
setCode ( string $code ) : Country Set code.
setId ( integer $id ) To force id = 1 in load fixtures.
setName ( string $name ) : Country Set name.

Method Details

__construct() public method

Constructor.
public __construct ( )

addAddress() public method

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

addAddresse() public method

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

getAddresses() public method

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

getCode() public method

Get code.
public getCode ( ) : string
return string

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

setCode() public method

Set code.
public setCode ( string $code ) : Country
$code string
return Country

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 ) : Country
$name string
return Country