Beta version

class RoleJsonSerializer extends AbstractJsonSerializer

Serialization class for Role.

Methods

string
serialize(mixed $obj)

Serializes data.

array
toArray(Role $role)

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(Role $role)

Create a simple associative array with an entity.

Parameters

Role $role

Return Value

array

at line 66
Role deserialize(string $jsonString)

Deserializes a json file into a readable array of datas.

Parameters

string $jsonString

Return Value

Role