Google\Cloud\BigQuery\Dataset::tables PHP Method

tables() public method

Example: $tables = $dataset->tables(); foreach ($tables as $table) { echo $table->id() . PHP_EOL; }
See also: https://cloud.google.com/bigquery/docs/reference/v2/tables/list Tables list API documentation.
public tables ( array $options = [] ) : Generator
$options array [optional] { Configuration options. @type int $maxResults Maximum number of results to return. }
return Generator
    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']);
    }