castopod/app/Libraries/Analytics/Config/Analytics.php
2021-06-11 09:35:19 +00:00

38 lines
907 B
PHP

<?php
declare(strict_types=1);
namespace Analytics\Config;
use CodeIgniter\Config\BaseConfig;
class Analytics extends BaseConfig
{
/**
* Gateway to analytic routes. By default, all analytics routes will be under `/analytics` path
*/
public string $gateway = 'analytics';
/**
* --------------------------------------------------------------------
* Route filters options
* --------------------------------------------------------------------
* @var array<string, string>
*/
public array $routeFilters = [
'analytics-full-data' => '',
'analytics-data' => '',
'analytics-filtered-data' => '',
];
/**
* get the full audio file
*
* @param string|string[] $audioFilePath
*/
public function getAudioFileUrl(string | array $audioFilePath): string
{
return base_url($audioFilePath);
}
}