<?php
 namespace App\EventHooks\Catalog; use App\EventHooks\HookEvent; use App\Models\NetworkStatus; class NetworkIssueReopened extends HookEvent { public const HOOK = 'NetworkIssueReopen'; public function issue(): ?NetworkStatus { $i = $this->get('network_issue'); if ($i instanceof NetworkStatus) { return $i; } $id = $this->get('issue_id') ?? $this->get('id'); return $id ? NetworkStatus::find($id) : null; } } 