public function tables(array $options = [])
{
$options['pageToken'] = null;
do {
$response = $this->connection->listTables($options + $this->identity);
if (!isset($response['tables'])) {
return;
}
foreach ($response['tables'] as $table) {
(yield new Table($this->connection, $table['tableReference']['tableId'], $this->identity['datasetId'], $this->identity['projectId'], $table));
}
$options['pageToken'] = isset($response['nextPageToken']) ? $response['nextPageToken'] : null;
} while ($options['pageToken']);
}