class GroupJsonSerializer extends AbstractJsonSerializer (View source)

Serialization class for Group.

Properties

protected $em
protected $roleSerializer

Methods

mixed
serialize(mixed $obj)

Serializes data.

__construct(EntityManager $em)

No description

array
toArray(Group $group)

Create a simple associative array with Group entity.

mixed
deserialize(string $string)

Deserializes a Json into readable datas

Details

mixed serialize(mixed $obj)

Serializes data.

Parameters

mixed $obj

Return Value

mixed

__construct(EntityManager $em)

Parameters

EntityManager $em

array toArray(Group $group)

Create a simple associative array with Group entity.

Parameters

Group $group

Return Value

array

mixed deserialize(string $string)

Deserializes a Json into readable datas

Parameters

string $string Input to deserialize

Return Value

mixed

Exceptions

Exception