Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Sulu
Bundle
ContactBundle
Entity
ContactTitle
jsonSerialize
Sulu\Bundle\ContactBundle\Entity\ContactTitle::jsonSerialize PHP Method
ContactTitle Class Documentation
Show file
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(), 'title' => $this->getTitle()]; }
ContactTitle
__toString
getId
getTitle
jsonSerialize
setTitle