You are here

public function Dummy::denormalize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Fixtures/Dummy.php \Symfony\Component\Serializer\Tests\Fixtures\Dummy::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:

Overrides DenormalizableInterface::denormalize

File

vendor/symfony/serializer/Tests/Fixtures/Dummy.php, line 36

Class

Dummy

Namespace

Symfony\Component\Serializer\Tests\Fixtures

Code

public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array()) {
  $this->foo = $data['foo'];
  $this->bar = $data['bar'];
  $this->baz = $data['baz'];
  $this->qux = $data['qux'];
}