DenormalizerInterface
interface DenormalizerInterface
Constants
COLLECT_DENORMALIZATION_ERRORS |
|
Methods
Denormalizes data back into an object of the given class.
Checks whether the given class is supported for denormalization by this normalizer.
Returns the types potentially supported by this denormalizer.
Details
mixed
denormalize(mixed$data,string$type,string|null$format =null,array$context =[])
Denormalizes data back into an object of the given class.
bool
supportsDenormalization(mixed$data,string$type,string|null$format =null,array$context =[])
Checks whether the given class is supported for denormalization by this normalizer.
array
getSupportedTypes(string|null$format)
Returns the types potentially supported by this denormalizer.
For each supported formats (if applicable), the supported types should be returned as keys, and each type should be mapped to a boolean indicating if the result of supportsDenormalization() can be cached or not (a result cannot be cached when it depends on the context or on the data.) A null value means that the denormalizer does not support the corresponding type.
Use type "object" to match any classes or interfaces, and type "*" to match any types.