2020-08-27 10:05:44 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-08-27 10:05:44 +00:00
|
|
|
/**
|
2022-02-19 16:06:11 +00:00
|
|
|
* @copyright 2020 Ad Aures
|
2020-08-27 10:05:44 +00:00
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Entities;
|
|
|
|
|
2021-05-06 14:00:48 +00:00
|
|
|
use CodeIgniter\Entity\Entity;
|
2020-08-27 10:05:44 +00:00
|
|
|
|
2021-05-12 14:00:25 +00:00
|
|
|
/**
|
|
|
|
* @property string $slug
|
|
|
|
* @property string $type
|
|
|
|
* @property string $label
|
|
|
|
* @property string $home_url
|
|
|
|
* @property string|null $submit_url
|
|
|
|
* @property string|null $link_url
|
2022-01-04 16:37:59 +00:00
|
|
|
* @property string|null $account_id
|
2021-05-12 14:00:25 +00:00
|
|
|
* @property bool|null $is_visible
|
2021-10-20 14:22:58 +00:00
|
|
|
* @property bool|null $is_on_embed
|
2021-05-12 14:00:25 +00:00
|
|
|
*/
|
2020-08-27 10:05:44 +00:00
|
|
|
class Platform extends Entity
|
|
|
|
{
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
2020-08-27 10:05:44 +00:00
|
|
|
protected $casts = [
|
2023-06-12 14:47:38 +00:00
|
|
|
'slug' => 'string',
|
|
|
|
'type' => 'string',
|
|
|
|
'label' => 'string',
|
|
|
|
'home_url' => 'string',
|
|
|
|
'submit_url' => '?string',
|
|
|
|
'link_url' => '?string',
|
|
|
|
'account_id' => '?string',
|
|
|
|
'is_visible' => '?boolean',
|
2021-10-20 14:22:58 +00:00
|
|
|
'is_on_embed' => '?boolean',
|
2020-08-27 10:05:44 +00:00
|
|
|
];
|
|
|
|
}
|