1 | <?php |
||
7 | class CsvParser implements ParserInterface |
||
8 | { |
||
9 | /** File format */ |
||
10 | const FORMAT = 'csv'; |
||
11 | |||
12 | /** CSV delimiter */ |
||
13 | const DELIMITER = ';'; |
||
14 | |||
15 | /** |
||
16 | * @var Finder |
||
17 | */ |
||
18 | private $finder; |
||
19 | |||
20 | /** |
||
21 | * @param Finder $finder |
||
22 | */ |
||
23 | 1 | public function __construct(Finder $finder) |
|
27 | |||
28 | /** |
||
29 | * @param string $dataset |
||
30 | * @param string $delimiter |
||
31 | * |
||
32 | * @return false|array |
||
33 | */ |
||
34 | 1 | public function parse($dataset, $delimiter = self::DELIMITER) |
|
55 | } |
||
56 |