Documentation

UnwrappingDenormalizer
in package
implements DenormalizerInterface, SerializerAwareInterface, CacheableSupportsMethodInterface Uses SerializerAwareTrait

FinalYes
Tags
author

Eduard Bulava bulavaeduard@gmail.com

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

Properties

Methods

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

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
bool

        
On this page

Search results