/** * Constructor * * @param string $delimiter The delimiter * @param string $enclosure The enclosure * @param resource $stream * @param bool $utf8Encoding */ public function __construct($delimiter = ';', $enclosure = '"', $stream = null, $utf8Encoding = false) { parent::__construct($stream); $this->delimiter = $delimiter; $this->enclosure = $enclosure; $this->utf8Encoding = $utf8Encoding; }
/** * Constructor * * @param string $delimiter The delimiter * @param string $enclosure The enclosure * @param resource $stream */ public function __construct($delimiter = ';', $enclosure = '"', $stream = null) { parent::__construct($stream); $this->delimiter = $delimiter; $this->enclosure = $enclosure; }
/** * Set a stream * * @param resource $stream */ public function setStream($stream) { parent::setStream($stream); foreach ($this->getStreamWriters() as $writer) { $writer->setStream($stream); } return $this; }