1. 8.2.x vendor/symfony/serializer/Normalizer/DenormalizerInterface.php DenormalizerInterface
  2. 8.0.x vendor/symfony/serializer/Normalizer/DenormalizerInterface.php DenormalizerInterface
  3. 8.1.x vendor/symfony/serializer/Normalizer/DenormalizerInterface.php DenormalizerInterface
  4. 8.3.x vendor/symfony/serializer/Normalizer/DenormalizerInterface.php DenormalizerInterface

Defines the interface of denormalizers.

@author Jordi Boggiano <j.boggiano@seld.be>

Hierarchy

Expanded class hierarchy of DenormalizerInterface

All classes that implement DenormalizerInterface

3 files declare their use of DenormalizerInterface
EntityNormalizer.php in core/modules/serialization/src/Normalizer/EntityNormalizer.php
NormalizerBase.php in core/modules/hal/src/Normalizer/NormalizerBase.php
Serializer.php in vendor/symfony/serializer/Serializer.php

File

vendor/symfony/serializer/Normalizer/DenormalizerInterface.php, line 19

Namespace

Symfony\Component\Serializer\Normalizer
View source
interface DenormalizerInterface
 {
  /**
   * Denormalizes data back into an object of the given class.
   *
   * @param mixed  $data    data to restore
   * @param string $class   the expected class to instantiate
   * @param string $format  format the given data was extracted from
   * @param array  $context options available to the denormalizer
   *
   * @return object
   */
  public function denormalize($data, $class, $format = null, array $context = array());

  /**
   * Checks whether the given class is supported for denormalization by this normalizer.
   *
   * @param mixed  $data   Data to denormalize from
   * @param string $type   The class to which the data should be denormalized
   * @param string $format The format being deserialized from
   *
   * @return bool
   */
  public function supportsDenormalization($data, $type, $format = null);
}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
DenormalizerInterface::denormalize public function Denormalizes data back into an object of the given class.
DenormalizerInterface::supportsDenormalization public function Checks whether the given class is supported for denormalization by this normalizer.