GoogleSheetReader
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- rowCount() : int
- rows() : Generator<int, array<int, mixed>>
- sample() : GoogleSheetSample
Methods
__construct()
public
__construct(Sheets $service, string $spreadsheetId, Columns $columns, GoogleSheetReadOptions $readOptions) : mixed
Parameters
- $service : Sheets
- $spreadsheetId : string
- $columns : Columns
- $readOptions : GoogleSheetReadOptions
rowCount()
public
rowCount() : int
Return values
introws()
public
rows(int $rowsPerPage) : Generator<int, array<int, mixed>>
Parameters
- $rowsPerPage : int
Return values
Generator<int, array<int, mixed>> —the raw cells of every row, keyed by its 1-based number in the sheet
sample()
public
sample(null|int<1, max> $rows) : GoogleSheetSample
Parameters
- $rows : null|int<1, max>
-
- null for every row