GoogleSheetReader
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- batches() : Generator<int, array<int, RawRowValues>>
- rowCount() : int
- sample() : GoogleSheetSample
Methods
__construct()
public
__construct(Sheets $service, string $spreadsheetId, Columns $columns, GoogleSheetReadOptions $readOptions) : mixed
Parameters
- $service : Sheets
- $spreadsheetId : string
- $columns : Columns
- $readOptions : GoogleSheetReadOptions
batches()
public
batches(int $rowsPerPage, int $batchSize) : Generator<int, array<int, RawRowValues>>
Parameters
- $rowsPerPage : int
- $batchSize : int
Return values
Generator<int, array<int, RawRowValues>>rowCount()
public
rowCount() : int
Return values
intsample()
public
sample(int<1, max>|-1 $rows) : GoogleSheetSample
Parameters
- $rows : int<1, max>|-1