comparison vendor/symfony/serializer/Encoder/DecoderInterface.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 * Decodes a string into PHP data. 24 * Decodes a string into PHP data.
25 * 25 *
26 * @param string $data Data to decode 26 * @param string $data Data to decode
27 * @param string $format Format name 27 * @param string $format Format name
28 * @param array $context options that decoders have access to 28 * @param array $context Options that decoders have access to
29 * 29 *
30 * The format parameter specifies which format the data is in; valid values 30 * The format parameter specifies which format the data is in; valid values
31 * depend on the specific implementation. Authors implementing this interface 31 * depend on the specific implementation. Authors implementing this interface
32 * are encouraged to document which formats they support in a non-inherited 32 * are encouraged to document which formats they support in a non-inherited
33 * phpdoc comment. 33 * phpdoc comment.
39 public function decode($data, $format, array $context = array()); 39 public function decode($data, $format, array $context = array());
40 40
41 /** 41 /**
42 * Checks whether the deserializer can decode from given format. 42 * Checks whether the deserializer can decode from given format.
43 * 43 *
44 * @param string $format format name 44 * @param string $format Format name
45 * 45 *
46 * @return bool 46 * @return bool
47 */ 47 */
48 public function supportsDecoding($format); 48 public function supportsDecoding($format);
49 } 49 }