for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of YaEtl.
* (c) Fabrice de Stefanis / https://github.com/fab2s/YaEtl
* This source file is licensed under the MIT license which you will
* find in the LICENSE file or at https://opensource.org/licenses/MIT
*/
namespace fab2s\YaEtl\Traits;
/**
* Trait CsvHandlerTrait
trait CsvHandlerTrait
{
* @var array
protected $header;
* @var string
protected $delimiter = ',';
protected $enclosure = '"';
* use more widespread " as default escape char instead of default \
*
protected $escape = '"';
* @var bool
protected $useHeader = false;
protected $useSep = false;
* @return array|null
public function getHeader()
return $this->header;
}
* @param array $header
* @return $this
public function setHeader(array $header)
$this->header = $header;
return $this;
* @param bool $useHeader
public function setUseHeader($useHeader)
$this->useHeader = (bool) $useHeader;
* @param bool $useSep
public function setUseSep($useSep)
$this->useSep = (bool) $useSep;