csvFlavour = csv_flavours::verifix($csvFlavour); parent::__construct($output, $params); } protected function _write(array $row, ?array $colStyles =null, ?array $rowStyle=null): void { $this->fputcsv($row); } function _sendContentType(): void { http::content_type("text/csv"); } protected function _checkOk(): bool { $size = $this->ftell(); if ($size === 0) return false; $this->rewind(); return true; } }