You are here

public function Serializer::denormalize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::denormalize()

Denormalizes data back into an object of the given class.

Parameters

mixed $data data to restore:

string $class the expected class to instantiate:

string $format format the given data was extracted from:

array $context options available to the denormalizer:

Return value

object

Overrides DenormalizerInterface::denormalize

1 call to Serializer::denormalize()
Serializer::deserialize in vendor/symfony/serializer/Serializer.php
Deserializes data into the given type.

File

vendor/symfony/serializer/Serializer.php, line 157

Class

Serializer
Serializer serializes and deserializes data.

Namespace

Symfony\Component\Serializer

Code

public function denormalize($data, $type, $format = null, array $context = array()) {
  return $this
    ->denormalizeObject($data, $type, $format, $context);
}