Method |
Description |
|
decode ( string $data, string $format ) : mixed |
Decodes a string from the given format back into PHP data |
|
denormalize ( mixed $data, string $type, string $format = null ) : mixed |
Denormalizes data into the given type. |
|
deserialize ( mixed $data, string $type, string $format ) |
Deserializes data into the given type. |
|
encode ( mixed $data, string $format ) : array | scalar |
Encodes data into the given format |
|
getEncoder ( $format ) : Symfony\Component\Serializer\Encoder\EncoderInterface |
Get the encoder for the given format |
|
normalize ( mixed $data, string $format = null ) : array | scalar |
Normalizes any data into a set of arrays/scalars |
|
serialize ( mixed $data, string $format ) : string |
Serializes data in the appropriate format |
|
supportsDecoding ( string $format ) : boolean |
Checks whether the serializer can decode from given format |
|
supportsDeserialization ( string $format ) : boolean |
Checks whether the serializer can deserialize from given format |
|
supportsEncoding ( string $format ) : boolean |
Checks whether the serializer can encode to given format |
|
supportsSerialization ( string $format ) : boolean |
Checks whether the serializer can serialize to given format |
|