2021-08-13 16:07:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2022-02-19 16:06:11 +00:00
|
|
|
* @copyright 2021 Ad Aures
|
2021-08-13 16:07:45 +00:00
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Entities;
|
|
|
|
|
|
|
|
use Michalsn\Uuid\UuidEntity;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property int $actor_id
|
|
|
|
* @property string $comment_id
|
|
|
|
*/
|
|
|
|
class Like extends UuidEntity
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*/
|
|
|
|
protected $uuids = ['comment_id'];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
protected $casts = [
|
2023-06-12 14:47:38 +00:00
|
|
|
'actor_id' => 'integer',
|
2021-08-13 16:07:45 +00:00
|
|
|
'comment_id' => 'string',
|
|
|
|
];
|
|
|
|
}
|