<?php

namespace App\Domain\Facility\Events;

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

class FacilityStatusChanged implements ShouldDispatchAfterCommit
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public Facility $facility,
        public string $oldStatus,
        public string $newStatus,
        public User $actor,
    ) {}
}
