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

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

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

addEmail() 공개 메소드

Add emails.
public addEmail ( Email $emails ) : EmailType
$emails Email
리턴 EmailType

getEmails() 공개 메소드

Get emails.
public getEmails ( ) : 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

removeEmail() 공개 메소드

Remove emails.
public removeEmail ( Email $emails )
$emails Email

setId() 공개 메소드

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

setName() 공개 메소드

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