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