class ReflectionEntitySerializer implements EntitySerializerInterface (View source)

Facade for reflection entity serialization.

Delegates to per-type serializers that only include data available via PHP Reflection API (no PhpDoc, no sinceVersion/removedVersion, no LanguageLevelTypeAware).

Methods

__construct()

No description

array
serialize(mixed $entity)

Serialize an entity to array format suitable for JSON encoding.

mixed
deserialize(array $data)

Deserialize an entity from array format.

Details

__construct()

No description

array serialize(mixed $entity)

Serialize an entity to array format suitable for JSON encoding.

Parameters

mixed $entity

The entity to serialize (PHPClass, PHPFunction, etc.)

Return Value

array

The serialized entity data

mixed deserialize(array $data)

Deserialize an entity from array format.

Parameters

array $data

The serialized entity data

Return Value

mixed

The reconstructed entity object