PHP Interface Symfony\Component\Serializer\Encoder\DecoderInterface

Author: Jordi Boggiano ([email protected])
Show file Open project: pmjones/php-framework-benchmarks Interface Usage Examples

Public Methods

Method Description
decode ( scalar $data, string $format ) : mixed Decodes a string into PHP data
supportsDecoding ( string $format ) : boolean Checks whether the serializer can decode from given format

Method Details

decode() public method

Decodes a string into PHP data
public decode ( scalar $data, string $format ) : mixed
$data scalar Data to decode
$format string Format name
return mixed

supportsDecoding() public method

Checks whether the serializer can decode from given format
public supportsDecoding ( string $format ) : boolean
$format string format name
return boolean