interface DenormalizerInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/serializer/Normalizer/DenormalizerInterface.php \Symfony\Component\Serializer\Normalizer\DenormalizerInterface
Defines the interface of denormalizers.
@author Jordi Boggiano <j.boggiano@seld.be>
Hierarchy
- interface \Symfony\Component\Serializer\Normalizer\DenormalizerInterface
Expanded class hierarchy of DenormalizerInterface
All classes that implement DenormalizerInterface
8 files declare their use of DenormalizerInterface
- DenormalizableDummy.php in vendor/
symfony/ serializer/ Tests/ Fixtures/ DenormalizableDummy.php - Dummy.php in vendor/
symfony/ serializer/ Tests/ Fixtures/ Dummy.php - EntityNormalizer.php in core/
modules/ serialization/ src/ Normalizer/ EntityNormalizer.php - Contains \Drupal\serialization\Normalizer\EntityNormalizer.
- NormalizableTraversableDummy.php in vendor/
symfony/ serializer/ Tests/ Fixtures/ NormalizableTraversableDummy.php - NormalizerBase.php in core/
modules/ hal/ src/ Normalizer/ NormalizerBase.php - Contains \Drupal\hal\Normalizer\NormalizerBase.
File
- vendor/
symfony/ serializer/ Normalizer/ DenormalizerInterface.php, line 19
Namespace
Symfony\Component\Serializer\NormalizerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DenormalizerInterface:: |
public | function | Denormalizes data back into an object of the given class. | 10 |
DenormalizerInterface:: |
public | function | Checks whether the given class is supported for denormalization by this normalizer. | 6 |