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

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
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\CircularReferenceException; 14 use Symfony\Component\Serializer\Exception\CircularReferenceException;
15 use Symfony\Component\Serializer\Exception\ExceptionInterface;
15 use Symfony\Component\Serializer\Exception\InvalidArgumentException; 16 use Symfony\Component\Serializer\Exception\InvalidArgumentException;
16 use Symfony\Component\Serializer\Exception\LogicException; 17 use Symfony\Component\Serializer\Exception\LogicException;
17 18
18 /** 19 /**
19 * Defines the interface of normalizers. 20 * Defines the interface of normalizers.
33 * 34 *
34 * @throws InvalidArgumentException Occurs when the object given is not an attempted type for the normalizer 35 * @throws InvalidArgumentException Occurs when the object given is not an attempted type for the normalizer
35 * @throws CircularReferenceException Occurs when the normalizer detects a circular reference when no circular 36 * @throws CircularReferenceException Occurs when the normalizer detects a circular reference when no circular
36 * reference handler can fix it 37 * reference handler can fix it
37 * @throws LogicException Occurs when the normalizer is not called in an expected context 38 * @throws LogicException Occurs when the normalizer is not called in an expected context
39 * @throws ExceptionInterface Occurs for all the other cases of errors
38 */ 40 */
39 public function normalize($object, $format = null, array $context = array()); 41 public function normalize($object, $format = null, array $context = []);
40 42
41 /** 43 /**
42 * Checks whether the given class is supported for normalization by this normalizer. 44 * Checks whether the given class is supported for normalization by this normalizer.
43 * 45 *
44 * @param mixed $data Data to normalize 46 * @param mixed $data Data to normalize