PHP Class Sulu\Bundle\ContactBundle\Entity\PhoneType

Inheritance: implements JsonSerializable
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

addPhone() public méthode

Add phones.
public addPhone ( Phone $phones ) : PhoneType
$phones Phone
Résultat PhoneType

getId() public méthode

Get id.
public getId ( ) : integer
Résultat integer

getName() public méthode

Get name.
public getName ( ) : string
Résultat string

getPhones() public méthode

Get phones.
public getPhones ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

jsonSerialize() public méthode

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

removePhone() public méthode

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

setId() public méthode

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

setName() public méthode

Set name.
public setName ( string $name ) : PhoneType
$name string
Résultat PhoneType