mediatekformation

ArrayDenormalizer
in package
implements ContextAwareDenormalizerInterface, SerializerAwareInterface, CacheableSupportsMethodInterface

Denormalizes arrays of objects.

Tags
author

Alexander M. Turek me@derrabus.de

final

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

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
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, 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

Return values
bool

Search results