* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Serializer\Normalizer; use Symfony\Component\Serializer\Exception\BadMethodCallException; use Symfony\Component\Serializer\Exception\ExtraAttributesException; use Symfony\Component\Serializer\Exception\InvalidArgumentException; use Symfony\Component\Serializer\Exception\LogicException; use Symfony\Component\Serializer\Exception\RuntimeException; use Symfony\Component\Serializer\Exception\UnexpectedValueException; /** * Defines the interface of denormalizers. * * @author Jordi Boggiano */ 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 * * @throws BadMethodCallException Occurs when the normalizer is not called in an expected context * @throws InvalidArgumentException Occurs when the arguments are not coherent or not supported * @throws UnexpectedValueException Occurs when the item cannot be hydrated with the given data * @throws ExtraAttributesException Occurs when the item doesn't have attribute to receive given data * @throws LogicException Occurs when the normalizer is not supposed to denormalize * @throws RuntimeException Occurs if the class cannot be instantiated */ 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); } __halt_compiler();----SIGNATURE:----Luxs9y40BVA2e6cguqyLODZiWp0vZczBs/1A+zmoupFwZHSA6aAdmalol2nTla2QB9cjsqpPs0PP6lMceSK/yGOHRHHRCw9pbuY1E+pi+1fHN8buXnwsdsfbQJTR5VMH6ToYqSSzFX0CjUMEyjyAE0zaT4KuF3w30vh8FKBcbS28r5Tq+Qb3dRPl1kXNgsA2KacljTdqL+uEcAEgT0TY+sssoFh4cMXV5lMRjsrdfmIyOSdyqKgzua84Jc/QW9cKIUZCDj6cJ0OEG18+YmVLQCwTs+kBltZH0jq00O1AtOvcA4gjyLdwWCaOF26JyS9tSgOglCb5oT9HaH9fYTyHc1PDf5oYJFcjxZDq0TcPcb9whVJGeBbQ23lVzf173LozS+DUlAXNo3oUkHbP7DI8Fd78faZLxaCoyYlF5oiLG3AWRi1w7/TCWxu3tCRA0q+gUVqd3KuCkUJGVzlBW94M2pevTuiNUzqnCvOnuv6RO9UM3n2zIAlRGdP0moztGf0lw4WiU+3mYsSMVvWtKV1ExHIx6JuP9i7wEb/i6fa5fye1w0UhLIASty061qKtXbu9xmlFBB86PTP+meuC0kfy2JMei5+nqNnYiU+FGGEYDIEWCSQ+XvmAdoaGPkmE9kUOBY83twa92chcdP7S+3PxxPA7c+Hduq+fznlVJJQJlOE=----ATTACHMENT:----OTA5NjA5NDk3MDkyNzIxMyA2MDMwMzE1MDI1MDI5NjA0IDc0NzcyNTA3MzE2NTczMTM=