<?php
 namespace App\EventHooks\Ticket; use App\EventHooks\HookEvent; use App\Models\Ticket; class TicketDeleted extends HookEvent { public const HOOK = 'TicketDelete'; public function ticketId(): ?int { $id = $this->get('ticket_id') ?? $this->get('ticketId'); return $id ? (int) $id : null; } public function ticket(): ?Ticket { $id = $this->ticketId(); return $id ? Ticket::find($id) : null; } public function adminId(): ?int { $id = $this->get('adminId'); return $id ? (int) $id : null; } } 