class CustomXmlDecoder implements DecoderInterface

This is just a simple XML decoder for test purposes.

SerializationTypeNotSupportedException

Methods

array
decode($data)

This is the method, which does the decoding work.

array
getMimeType()

The data returned is the actual file extensions supported for the files to decode.

Details

at line line 23
array decode($data)

This is the method, which does the decoding work.

Parameters

$data

Return Value

array

at line line 38
array getMimeType()

The data returned is the actual file extensions supported for the files to decode.

For instance, if you want to decode Yaml files with the extensions ".yml" and ".yaml", then you want to set the return array to ['yaml', 'yml'].

Return Value

array