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()

No description

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

No description

Details

jsonSerialize()

No description

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

No description

Parameters

DenormalizerInterface $denormalizer
$data
string $format
array $context