interface SerializerInterface
Defines the interface of the Serializer.
string | serialize(mixed $data, string $format, array $context = array()) Serializes data in the appropriate format. | |
object | deserialize(mixed $data, string $type, string $format, array $context = array()) Deserializes data into the given type. |
Serializes data in the appropriate format.
mixed | $data | Any data |
string | $format | Format name |
array | $context | Options normalizers/encoders have access to |
string |
Deserializes data into the given type.
mixed | $data | |
string | $type | |
string | $format | |
array | $context |
object |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/SerializerInterface.html