castopod/app/Libraries/Analytics/Entities/AnalyticsPodcastsByPlayer.php
Yassine Doghri aa1612342e
style(ecs): add easy-coding-standard to enforce coding style rules for php
- update .devcontainer settings: remove auto-formatting
for php + set intelephense as default formatter
- remove prettier php plugin as it lacks php 8 support
- add captain hook action for checking style pre-commit
- fix style with ecs on all files except views
2021-06-11 09:34:48 +00:00

45 lines
962 B
PHP

<?php
/**
* Class AnalyticsPodcastsByPlayer Entity for AnalyticsPodcastsByPlayer
*
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
namespace Analytics\Entities;
use CodeIgniter\Entity\Entity;
/**
* @property int $podcast_id
* @property string|null $app
* @property string|null $device
* @property string|null $os
* @property bool $is_bot
* @property Time $date
* @property int $hits
* @property Time $created_at
* @property Time $updated_at
*/
class AnalyticsPodcastsByPlayer extends Entity
{
/**
* @var string[]
*/
protected $dates = ['date', 'created_at', 'updated_at'];
/**
* @var array<string, string>
*/
protected $casts = [
'podcast_id' => 'integer',
'app' => '?string',
'device' => '?string',
'os' => '?string',
'is_bot' => 'boolean',
'hits' => 'integer',
];
}