1 | <?php |
||
11 | class PhpDecoder implements DecoderInterface |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * This is the method, which does the decoding work. |
||
16 | * |
||
17 | * @param $data |
||
18 | * @return array |
||
19 | */ |
||
20 | public function decode($data) |
||
24 | |||
25 | /** |
||
26 | * The data returned is the actual file extensions supported for the files to decode. |
||
27 | * For instance, if you want to decode Yaml files with the extensions ".yml" and ".yaml", |
||
28 | * then you want to set the return array to ['yaml', 'yml']. |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | public function getMimeType() |
||
36 | } |
||
37 |