interface SerializerInterface (View source)

EntitySerializer that implements simple serialization/deserialization methods.

Methods

mixed
serialize(mixed $obj)

Serializes data.

array
toArray(mixed $obj)

Create a simple associative array with an entity.

mixed
deserialize(string $string)

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(mixed $obj)

Create a simple associative array with an entity.

Parameters

mixed $obj

Return Value

array

mixed deserialize(string $string)

Deserializes a json file into a readable array of datas.

Parameters

string $string Input to deserialize

Return Value

mixed