Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/serializer/Normalizer/NormalizerInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 7a779792577d |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
23 interface NormalizerInterface | 23 interface NormalizerInterface |
24 { | 24 { |
25 /** | 25 /** |
26 * Normalizes an object into a set of arrays/scalars. | 26 * Normalizes an object into a set of arrays/scalars. |
27 * | 27 * |
28 * @param object $object object to normalize | 28 * @param object $object Object to normalize |
29 * @param string $format format the normalization result will be encoded as | 29 * @param string $format Format the normalization result will be encoded as |
30 * @param array $context Context options for the normalizer | 30 * @param array $context Context options for the normalizer |
31 * | 31 * |
32 * @return array|scalar | 32 * @return array|string|int|float|bool |
33 * | 33 * |
34 * @throws InvalidArgumentException Occurs when the object given is not an attempted type for the normalizer | 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 | 35 * @throws CircularReferenceException Occurs when the normalizer detects a circular reference when no circular |
36 * reference handler can fix it | 36 * reference handler can fix it |
37 * @throws LogicException Occurs when the normalizer is not called in an expected context | 37 * @throws LogicException Occurs when the normalizer is not called in an expected context |