Skip to content
Snippets Groups Projects
Like.php 558 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    declare(strict_types=1);
    
    /**
     * @copyright  2021 Podlibre
     * @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 = [
            'actor_id' => 'integer',
            'comment_id' => 'string',
        ];
    }