comparison vendor/symfony/serializer/Normalizer/NormalizerInterface.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children 1fec387a4317
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
8 * For the full copyright and license information, please view the LICENSE 8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code. 9 * file that was distributed with this source code.
10 */ 10 */
11 11
12 namespace Symfony\Component\Serializer\Normalizer; 12 namespace Symfony\Component\Serializer\Normalizer;
13
14 use Symfony\Component\Serializer\Exception\CircularReferenceException;
15 use Symfony\Component\Serializer\Exception\InvalidArgumentException;
16 use Symfony\Component\Serializer\Exception\LogicException;
13 17
14 /** 18 /**
15 * Defines the interface of normalizers. 19 * Defines the interface of normalizers.
16 * 20 *
17 * @author Jordi Boggiano <j.boggiano@seld.be> 21 * @author Jordi Boggiano <j.boggiano@seld.be>
24 * @param object $object object to normalize 28 * @param object $object object to normalize
25 * @param string $format format the normalization result will be encoded as 29 * @param string $format format the normalization result will be encoded as
26 * @param array $context Context options for the normalizer 30 * @param array $context Context options for the normalizer
27 * 31 *
28 * @return array|scalar 32 * @return array|scalar
33 *
34 * @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 * reference handler can fix it
37 * @throws LogicException Occurs when the normalizer is not called in an expected context
29 */ 38 */
30 public function normalize($object, $format = null, array $context = array()); 39 public function normalize($object, $format = null, array $context = array());
31 40
32 /** 41 /**
33 * Checks whether the given class is supported for normalization by this normalizer. 42 * Checks whether the given class is supported for normalization by this normalizer.