Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/serializer/Encoder/EncoderInterface.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 | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
23 /** | 23 /** |
24 * Encodes data into the given format. | 24 * Encodes data into the given format. |
25 * | 25 * |
26 * @param mixed $data Data to encode | 26 * @param mixed $data Data to encode |
27 * @param string $format Format name | 27 * @param string $format Format name |
28 * @param array $context options that normalizers/encoders have access to | 28 * @param array $context Options that normalizers/encoders have access to |
29 * | 29 * |
30 * @return scalar | 30 * @return string|int|float|bool |
31 * | 31 * |
32 * @throws UnexpectedValueException | 32 * @throws UnexpectedValueException |
33 */ | 33 */ |
34 public function encode($data, $format, array $context = array()); | 34 public function encode($data, $format, array $context = array()); |
35 | 35 |
36 /** | 36 /** |
37 * Checks whether the serializer can encode to given format. | 37 * Checks whether the serializer can encode to given format. |
38 * | 38 * |
39 * @param string $format format name | 39 * @param string $format Format name |
40 * | 40 * |
41 * @return bool | 41 * @return bool |
42 */ | 42 */ |
43 public function supportsEncoding($format); | 43 public function supportsEncoding($format); |
44 } | 44 } |