Beta version

interface SerializerInterface

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

at line 45
mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

at line 55
array toArray(mixed $obj)

Create a simple associative array with an entity.

Parameters

mixed $obj

Return Value

array

at line 64
mixed deserialize(string $string)

Deserializes a json file into a readable array of datas.

Parameters

string $string Input to deserialize

Return Value

mixed