public function CustomNormalizer::denormalize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Normalizer/CustomNormalizer.php \Symfony\Component\Serializer\Normalizer\CustomNormalizer::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
File
- vendor/
symfony/ serializer/ Normalizer/ CustomNormalizer.php, line 30
Class
- CustomNormalizer
- @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Symfony\Component\Serializer\NormalizerCode
public function denormalize($data, $class, $format = null, array $context = array()) {
$object = new $class();
$object
->denormalize($this->serializer, $data, $format, $context);
return $object;
}