| 1 | <?php |
||
| 11 | class YamlDecoder implements DecoderInterface |
||
| 12 | { |
||
| 13 | /** @var array Decoded data */ |
||
| 14 | protected $arrayData = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * This is the method, which does the decoding work. |
||
| 18 | * |
||
| 19 | * @param $data |
||
| 20 | * @return array |
||
| 21 | */ |
||
| 22 | public function decode($data) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The data returned is the actual file extensions supported for the files to decode. |
||
| 31 | * For instance, if you want to decode Yaml files with the extensions ".yml" and ".yaml", |
||
| 32 | * then you want to set the return array to ['yaml', 'yml']. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function getMimeType() |
||
| 40 | } |
||
| 41 |