Beta version

class SettingJsonSerializer extends AbstractJsonSerializer

Serialization class for Setting.

Methods

string
serialize(mixed $obj)

Serializes data.

array
toArray(Setting $setting)

Create a simple associative array with an entity.

deserialize(string $jsonString)

Deserializes a json file into a readable array of datas.

Details

string serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

string

at line 50
array toArray(Setting $setting)

Create a simple associative array with an entity.

Parameters

Setting $setting

Return Value

array

at line 70
Setting deserialize(string $jsonString)

Deserializes a json file into a readable array of datas.

Parameters

string $jsonString

Return Value

Setting