/** * @param CsvFormatInterface $csvFormat */ public function __construct(CsvFormatInterface $csvFormat) { $this->csvFormat = $csvFormat; $this->buildReplacements(); $this->initial = !is_null($this->csvFormat->getBom()) ? $this->csvFormat->getBom() : ''; $this->addProcessor(new DateTimeProcessor()); $this->addProcessor(new BoolProcessor()); $this->addProcessor(new ObjectToStringProcessor()); }