1 | <?php |
||
17 | class Xml implements ParserInterface |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritDoc} |
||
21 | * Parses an XML file as an array |
||
22 | * |
||
23 | * @throws ParseException If there is an error parsing the XML file |
||
24 | */ |
||
25 | 6 | public function parseFile($filename) |
|
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | * Parses an XML string as an array |
||
36 | * |
||
37 | * @throws ParseException If there is an error parsing the XML string |
||
38 | */ |
||
39 | 3 | public function parseString($config) |
|
45 | |||
46 | /** |
||
47 | * Completes parsing of XML data |
||
48 | * |
||
49 | * @param array $data |
||
50 | * @param string $filename |
||
51 | * |
||
52 | * @return array|null |
||
53 | * |
||
54 | * @throws ParseException If there is an error parsing the XML data |
||
55 | */ |
||
56 | 6 | protected function parse($data = null, $filename = null) |
|
75 | |||
76 | /** |
||
77 | * {@inheritDoc} |
||
78 | */ |
||
79 | 3 | public static function getSupportedExtensions() |
|
83 | } |
||
84 |