Documentation

ArrayDenormalizer
in package
implements ContextAwareDenormalizerInterface, DenormalizerAwareInterface, CacheableSupportsMethodInterface Uses DenormalizerAwareTrait

Denormalizes arrays of objects.

Tags
author

Alexander M. Turek me@derrabus.de

final

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

$denormalizer  : DenormalizerInterface

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

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
throws
NotNormalizableValueException
Return values
array<string|int, mixed>

hasCacheableSupportsMethod()

public hasCacheableSupportsMethod() : bool
Return values
bool

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

Return values
bool

        
On this page

Search results