Flow PHP

CSVEncoder implements Encoder

FinalYes
Tags
implements

Interfaces

Encoder

Methods

__construct()  : mixed
decode()  : array<string|int, mixed>
encode()  : array<string|int, mixed>
encodeHeader()  : string

Methods

__construct()

public __construct([bool $withHeader = true ][, string $separator = ',' ][, string $enclosure = '"' ][, string $escape = '\\' ][, bool $emptyToNull = true ][, string $dateTimeFormat = DateTimeInterface::ATOM ][, string $dateFormat = 'Y-m-d' ][, string $newLineSeparator = PHP_EOL ]) : mixed
Parameters
$withHeader : bool = true
$separator : string = ','
$enclosure : string = '"'
$escape : string = '\\'
$emptyToNull : bool = true
$dateTimeFormat : string = DateTimeInterface::ATOM
$dateFormat : string = 'Y-m-d'
$newLineSeparator : string = PHP_EOL

decode()

public decode(array<string|int, mixed> $batch) : array<string|int, mixed>
Parameters
$batch : array<string|int, mixed>
Return values
array<string|int, mixed>

encode()

public encode(array<string|int, mixed> $batch) : array<string|int, mixed>
Parameters
$batch : array<string|int, mixed>
Return values
array<string|int, mixed>

encodeHeader()

public encodeHeader(array<int, string> $headers) : string
Parameters
$headers : array<int, string>
Return values
string
On this page

Search results