Defines the interface of decoders
@author Jordi Boggiano <j.boggiano@seld.be>
Expanded class hierarchy of DecoderInterface
All classes that implement DecoderInterface
interface DecoderInterface {
/**
* Decodes a string into PHP data
*
* @param scalar $data Data to decode
* @param string $format Format name
*
* @return mixed
*/
public function decode($data, $format);
/**
* Checks whether the serializer can decode from given format
*
* @param string $format format name
* @return Boolean
*/
public function supportsDecoding($format);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DecoderInterface:: |
public | function | Decodes a string into PHP data | 5 |
DecoderInterface:: |
public | function | Checks whether the serializer can decode from given format | 5 |