FlattenExceptionNormalizer
in package
implements
DenormalizerInterface, ContextAwareNormalizerInterface
Uses
NormalizerAwareTrait
FinalYes
This normalizer is only used in Debug/Dev/Messenger contexts.
Tags
Table of Contents
Interfaces
- DenormalizerInterface
- ContextAwareNormalizerInterface
- Adds the support of an extra $context parameter for the supportsNormalization method.
Properties
Methods
- denormalize() : mixed
- Denormalizes data back into an object of the given class.
- normalize() : array<string|int, mixed>
- {@inheritdoc}
- setNormalizer() : mixed
- supportsDenormalization() : bool
- Checks whether the given class is supported for denormalization by this normalizer.
- supportsNormalization() : bool
- Checks whether the given class is supported for normalization by this normalizer.
Properties
$normalizer
protected
NormalizerInterface
$normalizer
Methods
denormalize()
Denormalizes data back into an object of the given class.
public
denormalize(mixed $data, string $type[, string $format = null ][, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $data : mixed
-
Data to restore
- $type : string
-
The expected class to instantiate
- $format : string = null
-
Format the given data was extracted from
- $context : array<string|int, mixed> = []
-
Options available to the denormalizer
normalize()
{@inheritdoc}
public
normalize(mixed $object[, string $format = null ][, array<string|int, mixed> $context = [] ]) : array<string|int, mixed>
Parameters
- $object : mixed
- $format : string = null
- $context : array<string|int, mixed> = []
Return values
array<string|int, mixed>setNormalizer()
public
setNormalizer(NormalizerInterface $normalizer) : mixed
Parameters
- $normalizer : NormalizerInterface
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> = []
Return values
boolsupportsNormalization()
Checks whether the given class is supported for normalization by this normalizer.
public
supportsNormalization(mixed $data[, string $format = null ][, array<string|int, mixed> $context = [] ]) : bool
Parameters
- $data : mixed
-
Data to normalize
- $format : string = null
-
The format being (de-)serialized from or into
- $context : array<string|int, mixed> = []
-
options that normalizers have access to