File "BuildNullAnalyticsReport.php"

Full Path: /var/www/drive/foundation/src/Admin/Analytics/Actions/BuildNullAnalyticsReport.php
File size: 1.76 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Common\Admin\Analytics\Actions;

class BuildNullAnalyticsReport extends BuildAnalyticsReport
{
    public function execute(): array
    {
        return [
            'pageViews' => [
                'granularity' => $this->dateRange->granularity,
                'datasets' => [
                    [
                        'label' => __('Current period'),
                        'data' => [],
                    ],
                    [
                        'label' => __('Previous period'),
                        'data' => [],
                    ],
                ],
            ],
            'browsers' => [
                'granularity' => $this->dateRange->granularity,
                'datasets' => [
                    [
                        'label' => __('Sessions'),
                        'data' => [],
                    ],
                ],
            ],
            'locations' => [
                'granularity' => $this->dateRange->granularity,
                'datasets' => [
                    [
                        'label' => __('Sessions'),
                        'data' => [],
                    ],
                ],
            ],
            'devices' => [
                'granularity' => $this->dateRange->granularity,
                'datasets' => [
                    [
                        'label' => __('Sessions'),
                        'data' => [],
                    ],
                ],
            ],
            'platforms' => [
                'granularity' => $this->dateRange->granularity,
                'datasets' => [
                    [
                        'label' => __('Sessions'),
                        'data' => [],
                    ],
                ],
            ],
        ];
    }
}