UnwrappingDenormalizer
in package
implements
DenormalizerInterface, SerializerAwareInterface, CacheableSupportsMethodInterface
Uses
SerializerAwareTrait
FinalYes
Tags
Table of Contents
Interfaces
- DenormalizerInterface
- SerializerAwareInterface
- CacheableSupportsMethodInterface
- Marker interface for normalizers and denormalizers that use only the type and the format in their supports*() methods.
Constants
- UNWRAP_PATH = 'unwrap_path'
Properties
- $serializer : SerializerInterface
- $propertyAccessor : mixed
Methods
- __construct() : mixed
- denormalize() : mixed
- Denormalizes data back into an object of the given class.
- hasCacheableSupportsMethod() : bool
- setSerializer() : mixed
- supportsDenormalization() : bool
- Checks whether the given class is supported for denormalization by this normalizer.
Constants
UNWRAP_PATH
public
mixed
UNWRAP_PATH
= 'unwrap_path'
Properties
$serializer
protected
SerializerInterface
$serializer
$propertyAccessor
private
mixed
$propertyAccessor
Methods
__construct()
public
__construct([PropertyAccessorInterface $propertyAccessor = null ]) : mixed
Parameters
- $propertyAccessor : PropertyAccessorInterface = null
denormalize()
Denormalizes data back into an object of the given class.
public
denormalize(mixed $data, string $class[, string $format = null ][, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $data : mixed
-
Data to restore
- $class : string
- $format : string = null
-
Format the given data was extracted from
- $context : array<string|int, mixed> = []
-
Options available to the denormalizer
hasCacheableSupportsMethod()
public
hasCacheableSupportsMethod() : bool
Return values
boolsetSerializer()
public
setSerializer(SerializerInterface $serializer) : mixed
Parameters
- $serializer : SerializerInterface
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> = []