Google\Cloud\BigQuery\QueryResults::__construct PHP Method

__construct() public method

public __construct ( Google\Cloud\BigQuery\Connection\ConnectionInterface $connection, string $jobId, string $projectId, array $info, array $reloadOptions, ValueMapper $mapper )
$connection Google\Cloud\BigQuery\Connection\ConnectionInterface Represents a connection to BigQuery.
$jobId string The job's ID.
$projectId string The project's ID.
$info array The query result's metadata.
$reloadOptions array The options to use when reloading query data.
$mapper ValueMapper Maps values between PHP and BigQuery.
    public function __construct(ConnectionInterface $connection, $jobId, $projectId, array $info, array $reloadOptions, ValueMapper $mapper)
    {
        $this->connection = $connection;
        $this->info = $info;
        $this->reloadOptions = $reloadOptions;
        $this->identity = ['jobId' => $jobId, 'projectId' => $projectId];
        $this->mapper = $mapper;
    }