Beta version

class RoleCollectionJsonSerializer extends AbstractJsonSerializer

Serialization class for Role.

Methods

string
serialize(mixed $obj)

Serializes data.

__construct(EntityManager $em)

No description

array
toArray(ArrayCollection $roles)

Create a simple associative array with an entity.

ArrayCollection
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 45
__construct(EntityManager $em)

Parameters

EntityManager $em

at line 58
array toArray(ArrayCollection $roles)

Create a simple associative array with an entity.

Parameters

ArrayCollection $roles

Return Value

array

at line 78
ArrayCollection deserialize(string $jsonString)

Deserializes a json file into a readable array of datas.

Parameters

string $jsonString

Return Value

ArrayCollection