<?php

namespace App\Events;

use App\Models\EscalationRule;
use App\Models\Ticket;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class TicketEscalated
{
    use Dispatchable, SerializesModels;

    public Ticket $ticket;

    public EscalationRule $rule;

    public array $changes;

    public function __construct(Ticket $ticket, EscalationRule $rule, array $changes)
    {
        $this->ticket = $ticket;
        $this->rule = $rule;
        $this->changes = $changes;
    }
}
