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(): ?array
return $this->header;
}
* @param array $header
* @return static
public function setHeader(array $header): self
$this->header = $header;
return $this;
* @param bool $useHeader
public function setUseHeader(bool $useHeader): self
$this->useHeader = $useHeader;
* @param bool $useSep
public function setUseSep(bool $useSep): self
$this->useSep = $useSep;