mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-13 17:55:47 +00:00

- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
32 lines
536 B
PHP
32 lines
536 B
PHP
<?php
|
|
|
|
/**
|
|
* @copyright 2021 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace ActivityPub\Entities;
|
|
|
|
use Michalsn\Uuid\UuidEntity;
|
|
|
|
/**
|
|
* @property int $actor_id
|
|
* @property string $note_id
|
|
*/
|
|
class Favourite extends UuidEntity
|
|
{
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected $uuids = ['note_id'];
|
|
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
protected $casts = [
|
|
'actor_id' => 'integer',
|
|
'note_id' => 'string',
|
|
];
|
|
}
|