class Serializer implements SerializerInterface, NormalizerInterface, DenormalizerInterface, EncoderInterface, DecoderInterface
Serializer serializes and deserializes data. objects are turned into arrays by normalizers. arrays are turned into various output formats by encoders. $serializer->serialize($obj, 'xml') $serializer->decode($data, 'xml') $serializer->denormalize($data, 'Class', 'xml')
Methods
__construct(array $normalizers = array(), array $encoders = array())
strin