Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Sulu
Bundle
ContactBundle
Entity
PhoneType
jsonSerialize
Sulu\Bundle\ContactBundle\Entity\PhoneType::jsonSerialize PHP Method
PhoneType Class Documentation
Exibir arquivo
Open project: sulu/sulu
jsonSerialize()
public
method
(PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
See link:
http://php.net/manual/en/jsonserializable.jsonserialize.php
public
jsonSerialize
( ) :
mixed
return
mixed
data which can be serialized by
json_encode
, which is a value of any type other than a resource
public function jsonSerialize() { return ['id' => $this->getId(), 'name' => $this->getName()]; }
PhoneType
__construct
addPhone
getId
getName
getPhones
jsonSerialize
removePhone
setId
setName