1 | <?php |
||
7 | class JsonParser implements ParserInterface |
||
8 | { |
||
9 | /** File format */ |
||
10 | const FORMAT = 'json'; |
||
11 | |||
12 | /** |
||
13 | * @var Finder |
||
14 | */ |
||
15 | private $finder; |
||
16 | |||
17 | /** |
||
18 | * @param Finder $finder |
||
19 | */ |
||
20 | 1 | public function __construct(Finder $finder) |
|
24 | |||
25 | /** |
||
26 | * @param string $dataset |
||
27 | * |
||
28 | * @return false|array |
||
29 | */ |
||
30 | 1 | public function parse($dataset) |
|
43 | |||
44 | /** |
||
45 | * @param string $content json content |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | 1 | private function getFieldsFromContent($content) |
|
59 | } |
||
60 |