DenormalizableInterface
in
Defines the most basic interface a class must implement to be denormalizable.
If a denormalizer is registered for the class and it doesn't implement the Denormalizable interfaces, the normalizer will be used instead
Tags
Table of Contents
Methods
- denormalize() : mixed
- Denormalizes the object back from an array of scalars|arrays.
Methods
denormalize()
Denormalizes the object back from an array of scalars|arrays.
public
denormalize(DenormalizerInterface $denormalizer, array<string|int, mixed>|string|int|float|bool $data[, string|null $format = null ][, array<string|int, mixed> $context = [] ]) : mixed
It is important to understand that the denormalize() call should denormalize recursively all child objects of the implementor.
Parameters
- $denormalizer : DenormalizerInterface
-
The denormalizer is given so that you can use it to denormalize objects contained within this object
- $data : array<string|int, mixed>|string|int|float|bool
-
The data from which to re-create the object
- $format : string|null = null
-
The format is optionally given to be able to denormalize differently based on different input formats
- $context : array<string|int, mixed> = []
-
Options for denormalizing