<?php

namespace App\Events;

use App\Enums\RegistrationStatus;
use App\Models\EventRegistration;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class RegistrationStatusChanged
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public EventRegistration $registration,
        public ?RegistrationStatus $previousStatus,
        public ?string $reason = null,
        public bool $isNewRegistration = false,
        public bool $wasPromotedFromWaitlist = false,
    ) {}
}
