BigQuery/src/Dataset.php
public function tables(array $options = [])
    {
        $resultLimit = $this->pluck('resultLimit', $options, false);

        return new ItemIterator(
            new PageIterator(
                function (array $table) {
                    return new Table(
                        $this->connection,
                        $table['tableReference']['tableId'],
                        $this->identity['datasetId'],
                        $this->identity['projectId'],
                        $this->mapper,
                        $table
                    );
                },
                [$this->connection, 'listTables'],
                $options + $this->identity,
                [
                    'itemsKey' => 'tables',
                    'resultLimit' => $resultLimit
                ]
            )
        );
    }
public function tables(array $options = [])
    {
        $resultLimit = $this->pluck('resultLimit', $options, false);

        return new ItemIterator(
            new PageIterator(
                function (array $table) {
                    return new Table(
                        $this->connection,
                        $table['tableReference']['tableId'],
                        $this->identity['datasetId'],
                        $this->identity['projectId'],
                        $this->mapper,
                        $table
                    );
                },
                [$this->connection, 'listTables'],
                $options + $this->identity,
                [
                    'itemsKey' => 'tables',
                    'resultLimit' => $resultLimit
                ]
            )
        );
    }
public function tables ( array $ options = [ ] ) { $ resultLimit = $ this -> pluck ( 'resultLimit' , $ options , false ) ; return new ItemIterator ( new PageIterator ( function ( array $ table ) { return new Table ( $ this -> connection , $ table [ 'tableReference' ] [ 'tableId' ] , $ this -> identity [ 'datasetId' ] , $ this -> identity [ 'projectId' ] , $ this -> mapper , $ table ) ; } , [ $ this -> connection , 'listTables' ] , $ options + $ this -> identity , [ 'itemsKey' => 'tables' , 'resultLimit' => $ resultLimit ] ) ) ; }
Fetches tables in the dataset.

Example:
```
$tables = $dataset->tables();

foreach ($tables as $table) {
echo $table->id() . PHP_EOL;
}
```

@see https://cloud.google.com/bigquery/docs/reference/v2/tables/list Tables list API documentation.

@param array $options [optional] {
Configuration options.

@type int $maxResults Maximum number of results to return per page.
@type int $resultLimit Limit the number of results returned in total.
**Defaults to** `0` (return all results).
@type string $pageToken A previously-returned page token used to
resume the loading of results from a specific point.
}
@return ItemIterator<Table>
Fetches tables in the dataset .