Flow PHP

GoogleSheetReadOptions

Read onlyYes
FinalYes
Tags
type

GoogleSheetOptions = array{dateTimeRenderOption?: string, majorDimension?: string, valueRenderOption?: string}

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

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 = []

typer()

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
TypeNarrower

withDropExtraColumns()

public withDropExtraColumns(bool $dropExtraColumns) : self
Parameters
$dropExtraColumns : bool
Return values
self

withEmptyToNull()

public withEmptyToNull(bool $emptyToNull) : self
Parameters
$emptyToNull : bool
Return values
self

withHeader()

public withHeader(bool $withHeader) : self
Parameters
$withHeader : bool
Return values
self

withOptions()

public withOptions(GoogleSheetOptions $options) : self
Parameters
$options : GoogleSheetOptions
Return values
self
On this page

Search results