2021-04-02 17:20:02 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
2022-02-19 16:06:11 +00:00
|
|
|
* @copyright 2021 Ad Aures
|
2021-04-02 17:20:02 +00:00
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
2021-08-23 11:05:16 +00:00
|
|
|
namespace Modules\Fediverse\Entities;
|
2021-04-02 17:20:02 +00:00
|
|
|
|
|
|
|
use Michalsn\Uuid\UuidEntity;
|
|
|
|
|
2021-05-12 14:00:25 +00:00
|
|
|
/**
|
|
|
|
* @property int $actor_id
|
2021-08-13 11:07:29 +00:00
|
|
|
* @property string $post_id
|
2021-05-12 14:00:25 +00:00
|
|
|
*/
|
2021-04-02 17:20:02 +00:00
|
|
|
class Favourite extends UuidEntity
|
|
|
|
{
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2021-08-13 11:07:29 +00:00
|
|
|
protected $uuids = ['post_id'];
|
2021-04-02 17:20:02 +00:00
|
|
|
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
2021-04-02 17:20:02 +00:00
|
|
|
protected $casts = [
|
|
|
|
'actor_id' => 'integer',
|
2021-08-13 11:07:29 +00:00
|
|
|
'post_id' => 'string',
|
2021-04-02 17:20:02 +00:00
|
|
|
];
|
|
|
|
}
|