PHP Interface Symfony\Component\Serializer\Encoder\DecoderInterface

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

Méthodes publiques

Méthode 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 méthode

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

supportsDecoding() public méthode

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