1 | <?php |
||
19 | class Yaml implements ParserInterface |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | * Loads a YAML/YML file as an array |
||
24 | * |
||
25 | * @throws ParseException If there is an error parsing the YAML file |
||
26 | */ |
||
27 | 6 | public function parseFile($filename) |
|
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | * Loads a YAML/YML string as an array |
||
46 | * |
||
47 | * @throws ParseException If If there is an error parsing the YAML string |
||
48 | */ |
||
49 | 6 | public function parseString($config) |
|
64 | |||
65 | /** |
||
66 | * Completes parsing of YAML/YML data |
||
67 | * |
||
68 | * @param array $data |
||
69 | * |
||
70 | * @return array|null |
||
71 | */ |
||
72 | 6 | protected function parse($data = null) |
|
76 | |||
77 | /** |
||
78 | * {@inheritDoc} |
||
79 | */ |
||
80 | 3 | public static function getSupportedExtensions() |
|
84 | } |
||
85 |