class RoleJsonSerializer extends AbstractJsonSerializer (View source)

Serialization class for Role.

Methods

mixed
serialize(mixed $obj)

Serializes data.

array
toArray(Role $role)

Create a simple associative array with Role 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(Role $role)

Create a simple associative array with Role entity.

Parameters

Role $role

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