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

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

공개 메소드들

메소드 설명
__construct ( ) Constructor.
addPhone ( Phone $phones ) : PhoneType Add phones.
getId ( ) : integer Get id.
getName ( ) : string Get name.
getPhones ( ) : Doctrine\Common\Collections\Collection Get phones.
jsonSerialize ( ) : mixed (PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
removePhone ( Phone $phones ) Remove phones.
setId ( integer $id ) To force id = 1 in load fixtures.
setName ( string $name ) : PhoneType Set name.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

addPhone() 공개 메소드

Add phones.
public addPhone ( Phone $phones ) : PhoneType
$phones Phone
리턴 PhoneType

getId() 공개 메소드

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

getName() 공개 메소드

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

getPhones() 공개 메소드

Get phones.
public getPhones ( ) : Doctrine\Common\Collections\Collection
리턴 Doctrine\Common\Collections\Collection

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

removePhone() 공개 메소드

Remove phones.
public removePhone ( Phone $phones )
$phones Phone

setId() 공개 메소드

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

setName() 공개 메소드

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