final public function Serializer::decode in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/serializer/Serializer.php \Symfony\Component\Serializer\Serializer::decode()
Decodes a string into PHP data.
Parameters
string $data Data to decode:
string $format Format name:
array $context options that decoders have access to.:
The format parameter specifies which format the data is in; valid values depend on the specific implementation. Authors implementing this interface are encouraged to document which formats they support in a non-inherited phpdoc comment.
Return value
mixed
Throws
Overrides DecoderInterface::decode
1 call to Serializer::decode()
- Serializer::deserialize in vendor/
symfony/ serializer/ Serializer.php - Deserializes data into the given type.
File
- vendor/
symfony/ serializer/ Serializer.php, line 241
Class
- Serializer
- Serializer serializes and deserializes data.
Namespace
Symfony\Component\SerializerCode
public final function decode($data, $format, array $context = array()) {
return $this->decoder
->decode($data, $format, $context);
}