Symfony\Component\Serializer\Normalizer\DenormalizableInterface::denormalize
Denormalizes the object back from an array of scalars|arrays.
It is important to understand that the denormalize() call should denormalize recursively all child objects of the implementor.
Signature
public function denormalize(DenormalizerInterface
$denormalizer,
[array|scalar
$data = null,
[string|null
$format = null,
array
$context]] )
Parameters
$denormalizer
— Symfony\Component\Serializer\Normalizer\DenormalizerInterface- The denormalizer is given so that you
can use it to denormalize objects contained within this object. $data
— object- The data from which to re-create the object.
$format
— object- The format is optionally given to be able to denormalize differently
based on different input formats. $context
— array- options for denormalizing