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

createTable() public method

Example: $table = $dataset->createTable('aTable');
See also: https://cloud.google.com/bigquery/docs/reference/v2/tables/insert Tables insert API documentation.
public createTable ( $id, array $options = [] ) : Google\Cloud\BigQuery\Table
$options array [optional] { Configuration options. @type array $metadata The available options for metadata are outlined at the [Table Resource API docs](https://cloud.google.com/bigquery/docs/reference/v2/tables#resource) }
return Google\Cloud\BigQuery\Table
    public function createTable($id, array $options = [])
    {
        if (isset($options['metadata'])) {
            $options += $options['metadata'];
            unset($options['metadata']);
        }
        $response = $this->connection->insertTable(['projectId' => $this->identity['projectId'], 'datasetId' => $this->identity['datasetId'], 'tableReference' => $this->identity + ['tableId' => $id]] + $options);
        return new Table($this->connection, $id, $this->identity['datasetId'], $this->identity['projectId'], $response);
    }