Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Sulu
Bundle
ContactBundle
Entity
Country
jsonSerialize
Sulu\Bundle\ContactBundle\Entity\Country::jsonSerialize PHP Method
Country Class Documentation
Mostrar archivo
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()]; }
Country
__construct
addAddress
addAddresse
getAddresses
getCode
getId
getName
jsonSerialize
removeAddress
removeAddresse
setCode
setId
setName