<?php

namespace App\Domain\Training\Events;

use App\Domain\Participant\Models\Participant;
use App\Models\User;
use Illuminate\Contracts\Events\ShouldDispatchAfterCommit;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class ParticipantStatusChanged implements ShouldDispatchAfterCommit
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Participant $participant,
        public string $oldStatus,
        public string $newStatus,
        public User $actor,
    ) {}
}
