| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class AbstractCsvFile |
||
| 13 | { |
||
| 14 | /** @var String */ |
||
| 15 | protected $filePath; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | protected $delimiter; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | protected $enclosure; |
||
| 22 | |||
| 23 | /** @var string */ |
||
| 24 | protected $escape; |
||
| 25 | |||
| 26 | /** @var resource File pointer */ |
||
| 27 | protected $file = null; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Reader constructor. |
||
| 31 | * |
||
| 32 | * @param string $filePath Path to the csv file. |
||
| 33 | * @param string $delimiter Delimiter to use for the csv file. |
||
| 34 | * @param string $enclosure Enclosure to use for the csv file. |
||
| 35 | * @param string $escape Escape to use for the csv file. |
||
| 36 | */ |
||
| 37 | public function __construct($filePath, $delimiter = ';', $enclosure = '"', $escape = '\\') |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getResource() |
||
| 50 |