trait SimpleSerializableAndDenormalizableClassTrait (View source)

A simple trait to use when you're working with a class that's only property to serialize is "class" and it has nothing to set in the denormlize method.

Methods

jsonSerialize()

{@inheritdoc}

denormalize(DenormalizerInterface $denormalizer, $data, string $format = null, array $context = [])

No description

Details

jsonSerialize()

{@inheritdoc}

See also

\JsonSerializable::jsonSerialize()

denormalize(DenormalizerInterface $denormalizer, $data, string $format = null, array $context = [])

No description

Parameters

DenormalizerInterface $denormalizer
$data
string $format
array $context