<?php

namespace App\Events;

use App\Enums\ModerationStatus;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class ContentModerated
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Model $content,
        public ModerationStatus $previousStatus,
        public ModerationStatus $newStatus,
        public ?string $reason = null,
    ) {}
}
