* * 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:----tKH1M5qXgf/IvMnci95Unp3c/xCgzYrcP72ofwfO04Tj/v/scHK+EvVKG2NqBGvU61kdeugWHjcmtPS84vn0+j9ATbAteRZRAaQ/oTVJsTZOaVA5vXBzCK/pbZXYwCYHjQuiPnT+uFq2Cv0g3IPEp5+aP4I4R7D8eA+Rbfum2Pyl4csAqwPZ7LiX9dwAES4rSTlGYfv+9sX3F6ykrt/KQ5P8hOD6q6owyGp+sWsvel4vmx6NasB1sJ9systb3j3jv31xjTk3mQtl0zeyiwQR0BAKS0HPSkkchFZShc00yiK8eh//vX1rBakJscLSSNuvQAqTiancqHO0vbmVGYUe/7d8g3ZCBuep9K3Pypr4XumqZGl5AOaM4VVcwiqDD52+U2MuLO6Gejl2vdigg3V8LC3ahmT5cnKTrJNmTw+jLGr71tZ2WEPEHsSXiVXhNa0W8CKY/2bqJyXCIj/o2rv3Ck248RGNRHraoiX/wuJr5NcLP1u8a38uVHlDENQnCXO/Zn3Bt3HCKrK5rye1uf3jjEfTJpBXgtMCcSq0xrzqVLXNzgsfDEq8gQMcBdZrGlw7VthMvr8rWaL9d6JJzVJBs1JuFykojLaZgLWdXEGNz+u8/6AO5wmU678CsSbqjWkG4zcO0F0zbK2mbcHIxvJIneFK9XeKIFKvWnKwNdFI420=----ATTACHMENT:----NjYyNzQ0NDE1MzgwOTA1MiA5ODE5MTUzOTA2MzIyOTExIDMzNzczNTYzMjE0NzE2MTg=