GoogleSheetReadOptions
Read onlyYes
FinalYes
Tags
Properties
- $dropExtraColumns : bool
- $emptyToNull : bool
- $options : array<string|int, mixed>
- $withHeader : bool
Methods
- __construct() : mixed
- encoder() : GoogleSheetEncoder
- A fresh encoder per pass - the sample and the read each consume their own header row.
- typer() : TypeNarrower
- FORMATTED_VALUE is the only render option under which every cell arrives as a string, so it is the only one where the string ladder has anything to read; the others hand over typed JSON scalars.
- withDropExtraColumns() : self
- withEmptyToNull() : self
- withHeader() : self
- withOptions() : self
Properties
$dropExtraColumns
public
bool
$dropExtraColumns
= true
$emptyToNull
public
bool
$emptyToNull
= true
$options
public
array<string|int, mixed>
$options
= []
$withHeader
public
bool
$withHeader
= true
Methods
__construct()
public
__construct([bool $withHeader = true ][, bool $dropExtraColumns = true ][, bool $emptyToNull = true ][, GoogleSheetOptions $options = [] ]) : mixed
Parameters
- $withHeader : bool = true
- $dropExtraColumns : bool = true
- $emptyToNull : bool = true
- $options : GoogleSheetOptions = []
encoder()
A fresh encoder per pass - the sample and the read each consume their own header row.
public
encoder() : GoogleSheetEncoder
Return values
GoogleSheetEncodertyper()
FORMATTED_VALUE is the only render option under which every cell arrives as a string, so it is the only one where the string ladder has anything to read; the others hand over typed JSON scalars.
public
typer(InferredTypes $candidates) : TypeNarrower
Parameters
- $candidates : InferredTypes
Return values
TypeNarrowerwithDropExtraColumns()
public
withDropExtraColumns(bool $dropExtraColumns) : self
Parameters
- $dropExtraColumns : bool
Return values
selfwithEmptyToNull()
public
withEmptyToNull(bool $emptyToNull) : self
Parameters
- $emptyToNull : bool
Return values
selfwithHeader()
public
withHeader(bool $withHeader) : self
Parameters
- $withHeader : bool
Return values
selfwithOptions()
public
withOptions(GoogleSheetOptions $options) : self
Parameters
- $options : GoogleSheetOptions