CSVReadOptions
Read onlyYes
FinalYes
Properties
- $charactersReadInLine : int|null
- $emptyToNull : bool
- $enclosure : string|null
- $escape : string|null
- $removeBOM : bool
- $separator : string|null
- $withHeader : bool
Methods
- __construct() : mixed
- withCharactersReadInLine() : self
- withEmptyToNull() : self
- withEnclosure() : self
- withEscape() : self
- withHeader() : self
- withRemoveBOM() : self
- withSeparator() : self
Properties
$charactersReadInLine
public
int|null
$charactersReadInLine
= null
$emptyToNull
public
bool
$emptyToNull
= true
$enclosure
public
string|null
$enclosure
= null
$escape
public
string|null
$escape
= null
$removeBOM
public
bool
$removeBOM
= true
$separator
public
string|null
$separator
= null
$withHeader
public
bool
$withHeader
= true
Methods
__construct()
public
__construct([bool $withHeader = true ][, bool $emptyToNull = true ][, bool $removeBOM = true ][, string|null $separator = null ][, string|null $enclosure = null ][, string|null $escape = null ][, null|int<1, max> $charactersReadInLine = null ]) : mixed
Parameters
- $withHeader : bool = true
- $emptyToNull : bool = true
- $removeBOM : bool = true
- $separator : string|null = null
- $enclosure : string|null = null
- $escape : string|null = null
- $charactersReadInLine : null|int<1, max> = null
-
- bytes read per step from a remote stream (S3, Azure); never splits a line
withCharactersReadInLine()
public
withCharactersReadInLine(int<1, max> $charactersReadInLine) : self
Parameters
- $charactersReadInLine : int<1, max>
-
- bytes read per step from a remote stream (S3, Azure); never splits a line
Return values
selfwithEmptyToNull()
public
withEmptyToNull(bool $emptyToNull) : self
Parameters
- $emptyToNull : bool
Return values
selfwithEnclosure()
public
withEnclosure(string $enclosure) : self
Parameters
- $enclosure : string
Return values
selfwithEscape()
public
withEscape(string $escape) : self
Parameters
- $escape : string
Return values
selfwithHeader()
public
withHeader(bool $withHeader) : self
Parameters
- $withHeader : bool
Return values
selfwithRemoveBOM()
public
withRemoveBOM(bool $removeBOM) : self
Parameters
- $removeBOM : bool
Return values
selfwithSeparator()
public
withSeparator(string $separator) : self
Parameters
- $separator : string