Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Serializer\Normalizer; Chris@0: Chris@0: /** Chris@0: * Defines the interface of denormalizers. Chris@0: * Chris@0: * @author Jordi Boggiano Chris@0: */ Chris@0: interface DenormalizerInterface Chris@0: { Chris@0: /** Chris@0: * Denormalizes data back into an object of the given class. Chris@0: * Chris@0: * @param mixed $data data to restore Chris@0: * @param string $class the expected class to instantiate Chris@0: * @param string $format format the given data was extracted from Chris@0: * @param array $context options available to the denormalizer Chris@0: * Chris@0: * @return object Chris@0: */ Chris@0: public function denormalize($data, $class, $format = null, array $context = array()); Chris@0: Chris@0: /** Chris@0: * Checks whether the given class is supported for denormalization by this normalizer. Chris@0: * Chris@0: * @param mixed $data Data to denormalize from Chris@0: * @param string $type The class to which the data should be denormalized Chris@0: * @param string $format The format being deserialized from Chris@0: * Chris@0: * @return bool Chris@0: */ Chris@0: public function supportsDenormalization($data, $type, $format = null); Chris@0: }