mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-16 13:07:46 +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,6 +10,16 @@ namespace App\Entities;
|
|||
|
||||
use CodeIgniter\Entity\Entity;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $podcast_id
|
||||
* @property int $episode_id
|
||||
* @property double $start_time
|
||||
* @property double $duration
|
||||
* @property string|null $label
|
||||
* @property int $created_by
|
||||
* @property int $updated_by
|
||||
*/
|
||||
class Soundbite extends Entity
|
||||
{
|
||||
/**
|
||||
|
|
@ -19,17 +29,10 @@ class Soundbite extends Entity
|
|||
'id' => 'integer',
|
||||
'podcast_id' => 'integer',
|
||||
'episode_id' => 'integer',
|
||||
'start_time' => 'float',
|
||||
'duration' => 'float',
|
||||
'start_time' => 'double',
|
||||
'duration' => 'double',
|
||||
'label' => '?string',
|
||||
'created_by' => 'integer',
|
||||
'updated_by' => 'integer',
|
||||
];
|
||||
|
||||
public function setUpdatedBy(User $user): self
|
||||
{
|
||||
$this->attributes['updated_by'] = $user->id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue