1 | <?php |
||
12 | class XmlParser implements ParserInterface |
||
13 | { |
||
14 | /** |
||
15 | * The xml root node name |
||
16 | * @var string |
||
17 | */ |
||
18 | public static $rootNodeName = 'configuration'; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function parse($file) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function dump($file, array $data) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public static function getSupportedExtensions() |
||
51 | } |
If you suppress an error, we recommend checking for the error condition explicitly: