class SettingJsonSerializer extends AbstractJsonSerializer (View source)

Serialization class for Setting.

Methods

mixed
serialize(mixed $obj)

Serializes data.

array
toArray(Setting $setting)

Create a simple associative array with Setting entity.

mixed
deserialize(string $jsonString)

Deserializes a json file into a readable array of datas.

Details

mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

array toArray(Setting $setting)

Create a simple associative array with Setting entity.

Parameters

Setting $setting

Return Value

array

mixed deserialize(string $jsonString)

Deserializes a json file into a readable array of datas.

Parameters

string $jsonString

Return Value

mixed

Exceptions

Exception