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