Copied!
CloneableFinalInstantiable
Constants
public Symfony\Component\Serializer\Normalizer\DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS = 'collect_denormalization_errors'
Methods
public denormalize(?mixed $data, string $type, ?string $format = NULL, array $context = []) : ?mixed
public getSupportedTypes(?string $format) : array
public normalize(?mixed $object, ?string $format = NULL, array $context = []) : ArrayObject|array|string|int|float|bool|?null
public setSerializer(Symfony\Component\Serializer\SerializerInterface $serializer) : void
public supportsDenormalization(?mixed $data, string $type, ?string $format = NULL, array $context = []) : bool
 

Checks if the given class implements the DenormalizableInterface.

  • param mixed $data Data to denormalize from
  • param string $type The class to which the data should be denormalized
  • param string|null $format The format being deserialized from
public supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool
 

Checks if the given class implements the NormalizableInterface.

  • param mixed $data Data to normalize
  • param string|null $format The format being (de-)serialized from or into
Properties
protected ?Symfony\Component\Serializer\SerializerInterface $serializer = NULL
Methods
protected extractObjectToPopulate(string $class, array $context, ?string $key = NULL) : ?object
 

Extract the object_to_populate field from the context if it exists and is an instance of the provided $class.

  • param string $class The class the object should be
  • param string|null $key They in which to look for the object to populate. Keeps backwards compatibility with AbstractNormalizer.
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration