mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
34 lines
569 B
PHP
34 lines
569 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @copyright 2021 Ad Aures
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace Modules\Fediverse\Entities;
|
|
|
|
use Michalsn\Uuid\UuidEntity;
|
|
|
|
/**
|
|
* @property int $actor_id
|
|
* @property string $post_id
|
|
*/
|
|
class Favourite extends UuidEntity
|
|
{
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected $uuids = ['post_id'];
|
|
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
protected $casts = [
|
|
'actor_id' => 'integer',
|
|
'post_id' => 'string',
|
|
];
|
|
}
|