ArrayDenormalizer
in package
implements
ContextAwareDenormalizerInterface, SerializerAwareInterface, CacheableSupportsMethodInterface
Denormalizes arrays of objects.
Tags
Interfaces, Classes, Traits and Enums
- ContextAwareDenormalizerInterface
- Adds the support of an extra $context parameter for the supportsDenormalization method.
- SerializerAwareInterface
- CacheableSupportsMethodInterface
- Marker interface for normalizers and denormalizers that use only the type and the format in their supports*() methods.
Table of Contents
- $serializer : SerializerInterface|DenormalizerInterface
- denormalize() : array<string|int, mixed>
- {@inheritdoc}
- hasCacheableSupportsMethod() : bool
- setSerializer() : mixed
- Sets the owning Serializer object.
- supportsDenormalization() : bool
- Checks whether the given class is supported for denormalization by this normalizer.
Properties
$serializer
private
SerializerInterface|DenormalizerInterface
$serializer
Methods
denormalize()
{@inheritdoc}
public
denormalize(mixed $data, mixed $type[, mixed $format = null ][, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>
Parameters
- $data : mixed
- $type : mixed
- $format : mixed = null
- $context : array<string|int, mixed> = []
Tags
Return values
array<string|int, mixed> —hasCacheableSupportsMethod()
public
hasCacheableSupportsMethod() : bool
Return values
bool —setSerializer()
Sets the owning Serializer object.
public
setSerializer(SerializerInterface $serializer) : mixed
Parameters
- $serializer : SerializerInterface
Return values
mixed —supportsDenormalization()
Checks whether the given class is supported for denormalization by this normalizer.
public
supportsDenormalization(mixed $data, mixed $type[, mixed $format = null ][, array<string|int, mixed> $context = [] ]) : bool
Parameters
- $data : mixed
-
Data to denormalize from
- $type : mixed
-
The class to which the data should be denormalized
- $format : mixed = null
-
The format being deserialized from
- $context : array<string|int, mixed> = []
-
options that denormalizers have access to