Метод | Описание | |
---|---|---|
__construct ( ) | Constructor. | |
addPhone ( |
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 ( |
Remove phones. | |
setId ( integer $id ) | To force id = 1 in load fixtures. | |
setName ( string $name ) : |
Set name. |
public addPhone ( |
||
$phones | ||
Результат |
public getPhones ( ) : Doctrine\Common\Collections\Collection | ||
Результат | Doctrine\Common\Collections\Collection |
public jsonSerialize ( ) : mixed | ||
Результат | mixed | data which can be serialized by json_encode, which is a value of any type other than a resource |