<?php

namespace Botble\Analytics;

use Google\Analytics\Data\V1beta\RunReportResponse;
use Illuminate\Support\Collection;

class AnalyticsResponse
{
    public RunReportResponse $googleResponse;

    public Collection $table;

    public array $metricAggregationsTable;

    public function setGoogleResponse(RunReportResponse $googleResponse): self
    {
        $this->googleResponse = $googleResponse;

        return $this;
    }

    public function setTable(array $table): self
    {
        $this->table = collect($table);

        return $this;
    }

    public function setMetricAggregationsTable(array $metricAggregationsTable): self
    {
        $this->metricAggregationsTable = $metricAggregationsTable;

        return $this;
    }
}
