comparison vendor/symfony/serializer/Normalizer/DenormalizerInterface.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
10 */ 10 */
11 11
12 namespace Symfony\Component\Serializer\Normalizer; 12 namespace Symfony\Component\Serializer\Normalizer;
13 13
14 use Symfony\Component\Serializer\Exception\BadMethodCallException; 14 use Symfony\Component\Serializer\Exception\BadMethodCallException;
15 use Symfony\Component\Serializer\Exception\ExceptionInterface;
15 use Symfony\Component\Serializer\Exception\ExtraAttributesException; 16 use Symfony\Component\Serializer\Exception\ExtraAttributesException;
16 use Symfony\Component\Serializer\Exception\InvalidArgumentException; 17 use Symfony\Component\Serializer\Exception\InvalidArgumentException;
17 use Symfony\Component\Serializer\Exception\LogicException; 18 use Symfony\Component\Serializer\Exception\LogicException;
18 use Symfony\Component\Serializer\Exception\RuntimeException; 19 use Symfony\Component\Serializer\Exception\RuntimeException;
19 use Symfony\Component\Serializer\Exception\UnexpectedValueException; 20 use Symfony\Component\Serializer\Exception\UnexpectedValueException;
39 * @throws InvalidArgumentException Occurs when the arguments are not coherent or not supported 40 * @throws InvalidArgumentException Occurs when the arguments are not coherent or not supported
40 * @throws UnexpectedValueException Occurs when the item cannot be hydrated with the given data 41 * @throws UnexpectedValueException Occurs when the item cannot be hydrated with the given data
41 * @throws ExtraAttributesException Occurs when the item doesn't have attribute to receive given data 42 * @throws ExtraAttributesException Occurs when the item doesn't have attribute to receive given data
42 * @throws LogicException Occurs when the normalizer is not supposed to denormalize 43 * @throws LogicException Occurs when the normalizer is not supposed to denormalize
43 * @throws RuntimeException Occurs if the class cannot be instantiated 44 * @throws RuntimeException Occurs if the class cannot be instantiated
45 * @throws ExceptionInterface Occurs for all the other cases of errors
44 */ 46 */
45 public function denormalize($data, $class, $format = null, array $context = array()); 47 public function denormalize($data, $class, $format = null, array $context = []);
46 48
47 /** 49 /**
48 * Checks whether the given class is supported for denormalization by this normalizer. 50 * Checks whether the given class is supported for denormalization by this normalizer.
49 * 51 *
50 * @param mixed $data Data to denormalize from 52 * @param mixed $data Data to denormalize from