Defines the interface of the Serializer
@author Jordi Boggiano <j.boggiano@seld.be>
Expanded class hierarchy of SerializerInterface
All classes that implement SerializerInterface
interface SerializerInterface {
/**
* Serializes data in the appropriate format
*
* @param mixed $data any data
* @param string $format format name
* @return string
*/
public function serialize($data, $format);
/**
* Deserializes data into the given type.
*
* @param mixed $data
* @param string $type
* @param string $format
*/
public function deserialize($data, $type, $format);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SerializerInterface:: |
public | function | Deserializes data into the given type. | 1 |
SerializerInterface:: |
public | function | Serializes data in the appropriate format | 1 |