2020-06-12 22:41:09 +02:00
|
|
|
<?php
|
2020-08-04 13:25:22 +02:00
|
|
|
|
2021-06-08 11:52:11 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-06-12 22:41:09 +02:00
|
|
|
/**
|
2021-05-19 18:35:13 +02:00
|
|
|
* Class AnalyticsPodcasts Entity for AnalyticsPodcasts
|
|
|
|
*
|
2022-02-19 17:06:11 +01:00
|
|
|
* @copyright 2020 Ad Aures
|
2020-06-12 22:41:09 +02:00
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
2020-08-04 13:25:22 +02:00
|
|
|
|
2021-08-23 13:05:16 +02:00
|
|
|
namespace Modules\Analytics\Entities;
|
2020-06-12 22:41:09 +02:00
|
|
|
|
2021-05-06 16:00:48 +02:00
|
|
|
use CodeIgniter\Entity\Entity;
|
2020-06-12 22:41:09 +02:00
|
|
|
|
2021-05-12 16:00:25 +02:00
|
|
|
/**
|
|
|
|
* @property int $podcast_id
|
|
|
|
* @property Time $date
|
2021-06-11 16:51:14 +02:00
|
|
|
* @property double $duration
|
2021-05-12 16:00:25 +02:00
|
|
|
* @property int $bandwidth
|
|
|
|
* @property int $unique_listeners
|
|
|
|
* @property int $hits
|
|
|
|
* @property Time $created_at
|
|
|
|
* @property Time $updated_at
|
|
|
|
*/
|
2020-10-06 17:39:27 +02:00
|
|
|
class AnalyticsPodcasts extends Entity
|
2020-06-12 22:41:09 +02:00
|
|
|
{
|
2021-05-12 16:00:25 +02:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $dates = ['date', 'created_at', 'updated_at'];
|
|
|
|
|
2021-05-06 16:00:48 +02:00
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
2020-06-12 22:41:09 +02:00
|
|
|
protected $casts = [
|
2023-06-12 16:47:38 +02:00
|
|
|
'podcast_id' => 'integer',
|
|
|
|
'duration' => 'double',
|
|
|
|
'bandwidth' => 'integer',
|
2020-10-08 16:45:46 +02:00
|
|
|
'unique_listeners' => 'integer',
|
2023-06-12 16:47:38 +02:00
|
|
|
'hits' => 'integer',
|
2020-06-12 22:41:09 +02:00
|
|
|
];
|
|
|
|
}
|