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.
DenormalizerInterface $denormalizer The denormalizer is given so that you: can use it to denormalize objects contained within this object.
array|scalar $data The data from which to re-create the object.:
string|null $format The format is optionally given to be able to denormalize differently: based on different input formats.
Overrides DenormalizableInterface::denormalize
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null) {
return array(
'foo' => 'denormalizedFoo',
'bar' => 'denormalizedBar',
);
}