Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Component/Serialization/SerializationInterface.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 |
line wrap: on
line source
<?php namespace Drupal\Component\Serialization; /** * Defines an interface for serialization formats. */ interface SerializationInterface { /** * Encodes data into the serialization format. * * @param mixed $data * The data to encode. * * @return string * The encoded data. */ public static function encode($data); /** * Decodes data from the serialization format. * * @param string $raw * The raw data string to decode. * * @return mixed * The decoded data. */ public static function decode($raw); /** * Gets the file extension for this serialization format. * * @return string * The file extension, without leading dot. */ public static function getFileExtension(); }