1 | <?php |
||
13 | class EasyCsvReaderAdapter |
||
14 | { |
||
15 | /** @var ReaderInterface */ |
||
16 | private $reader; |
||
17 | |||
18 | /** |
||
19 | * @param string $path |
||
20 | * @param string $mode - not in use |
||
21 | * @param bool $headersInFirstRow |
||
22 | * @param ReaderInterface $reader - optional |
||
23 | */ |
||
24 | public function __construct($path, $mode = 'r+', $headersInFirstRow = true, ReaderInterface $reader = null) |
||
43 | |||
44 | /** |
||
45 | * @param string $delimiter |
||
46 | */ |
||
47 | public function setDelimiter($delimiter) |
||
51 | |||
52 | /** |
||
53 | * @param string $enclosure |
||
54 | */ |
||
55 | public function setEnclosure($enclosure) |
||
59 | |||
60 | /** |
||
61 | * @return array|false |
||
62 | */ |
||
63 | public function getHeaders() |
||
69 | |||
70 | /** |
||
71 | * @return array|bool|string |
||
72 | */ |
||
73 | public function getRow() |
||
79 | |||
80 | /** |
||
81 | * @return array |
||
82 | */ |
||
83 | public function getAll() |
||
89 | |||
90 | /** |
||
91 | * @return int|null |
||
92 | */ |
||
93 | public function getLineNumber() |
||
97 | } |