mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 19:47:45 +02:00
refactor: add phpstan and update code to adhere to level 5
- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
This commit is contained in:
parent
b691b927fe
commit
231d578d64
148 changed files with 11189 additions and 11421 deletions
|
|
@ -10,18 +10,29 @@
|
|||
|
||||
namespace Analytics\Entities;
|
||||
|
||||
use datetime;
|
||||
use CodeIgniter\Entity\Entity;
|
||||
|
||||
/**
|
||||
* @property int $podcast_id
|
||||
* @property string $referer_url
|
||||
* @property Time $date
|
||||
* @property int $hits
|
||||
* @property Time $created_at
|
||||
* @property Time $updated_at
|
||||
*/
|
||||
class AnalyticsWebsiteByReferer extends Entity
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
protected $dates = ['date', 'created_at', 'updated_at'];
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $casts = [
|
||||
'podcast_id' => 'integer',
|
||||
'referer_url' => 'string',
|
||||
'date' => 'datetime',
|
||||
'hits' => 'integer',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue