for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oliverde8\Component\PhpEtl\Model\File;
/**
* Class AbstractFile
*
* @author de Cramer Oliver<[email protected]>
* @copyright 2018 Oliverde8
* @package Oliverde8\Component\PhpEtl\Model\File
*/
class AbstractCsvFile
{
/** @var String */
protected $filePath;
/** @var string */
protected $delimiter;
protected $enclosure;
protected $escape;
/** @var resource File pointer */
protected $file = null;
* Reader constructor.
* @param string $filePath Path to the csv file.
* @param string $delimiter Delimiter to use for the csv file.
* @param string $enclosure Enclosure to use for the csv file.
* @param string $escape Escape to use for the csv file.
public function __construct($filePath, $delimiter = ';', $enclosure = '"', $escape = '\\')
$this->filePath = $filePath;
$this->delimiter = $delimiter;
$this->enclosure = $enclosure;
$this->escape = $escape;
}