Flow PHP

CSVDialect

Read onlyYes
FinalYes

Properties

$enclosure  : string
$escape  : string
$separator  : string

Methods

__construct()  : mixed
assertParts()  : void
The checks of a dialect whose parts may be left to detection.
fromArray()  : self
normalize()  : array{separator: string, enclosure: string, escape: string}

Properties

Methods

__construct()

public __construct(string $separator, string $enclosure, string $escape) : mixed
Parameters
$separator : string
$enclosure : string
$escape : string
Tags
throws
InvalidArgumentException

when a character is not a single one (an escape may also be empty)

assertParts()

The checks of a dialect whose parts may be left to detection.

public static assertParts(string|null $separator, string|null $enclosure, string|null $escape) : void
Parameters
$separator : string|null
$enclosure : string|null
$escape : string|null
Tags
throws
InvalidArgumentException

when a given character is not a single one (an escape may also be empty)

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>

the shape of normalize()

Return values
self

normalize()

public normalize() : array{separator: string, enclosure: string, escape: string}
Return values
array{separator: string, enclosure: string, escape: string}
On this page

Search results