PHP 클래스 Sulu\Bundle\ContactBundle\Entity\AddressType

상속: implements JsonSerializable
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

addAddress() 공개 메소드

Add addresses.
public addAddress ( Address $addresses ) : AddressType
$addresses Address
리턴 AddressType

addAddresse() 공개 메소드

Add addresses.
public addAddresse ( Address $addresses ) : AddressType
$addresses Address
리턴 AddressType

getAddresses() 공개 메소드

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

getId() 공개 메소드

Get id.
public getId ( ) : integer
리턴 integer

getName() 공개 메소드

Get name.
public getName ( ) : string
리턴 string

jsonSerialize() 공개 메소드

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

removeAddress() 공개 메소드

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

removeAddresse() 공개 메소드

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

setId() 공개 메소드

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

setName() 공개 메소드

Set name.
public setName ( string $name ) : AddressType
$name string
리턴 AddressType