| 1 | <?php |
||
| 5 | class CsvTableReader implements TableReader |
||
| 6 | { |
||
| 7 | |||
| 8 | private $filename; |
||
| 9 | private $handle; |
||
| 10 | private $columns; |
||
| 11 | |||
| 12 | function __construct($filename) { |
||
| 15 | |||
| 16 | function getColumns() { |
||
| 22 | |||
| 23 | function getIterator() { |
||
| 33 | |||
| 34 | private function mapToColumns($row) { |
||
| 46 | |||
| 47 | private function initColumns() { |
||
| 51 | |||
| 52 | private function getRow() { |
||
| 55 | |||
| 56 | private function open() { |
||
| 63 | |||
| 64 | private function close() { |
||
| 70 | } |
||
| 71 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.