You are here

public function DenormalizableInterface::denormalize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Normalizer/DenormalizableInterface.php \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.

Parameters

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

array $context options for denormalizing:

4 methods override DenormalizableInterface::denormalize()
DenormalizableDummy::denormalize in vendor/symfony/serializer/Tests/Fixtures/DenormalizableDummy.php
Denormalizes the object back from an array of scalars|arrays.
Dummy::denormalize in vendor/symfony/serializer/Tests/Fixtures/Dummy.php
Denormalizes the object back from an array of scalars|arrays.
NormalizableTraversableDummy::denormalize in vendor/symfony/serializer/Tests/Fixtures/NormalizableTraversableDummy.php
Denormalizes the object back from an array of scalars|arrays.
ScalarDummy::denormalize in vendor/symfony/serializer/Tests/Fixtures/ScalarDummy.php
Denormalizes the object back from an array of scalars|arrays.

File

vendor/symfony/serializer/Normalizer/DenormalizableInterface.php, line 37

Class

DenormalizableInterface
Defines the most basic interface a class must implement to be denormalizable.

Namespace

Symfony\Component\Serializer\Normalizer

Code

public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array());