<?php

declare(strict_types=1);

namespace App\Listeners;

use App\Contracts\Services\NotificationServiceInterface;
use App\Events\DisputeResolved;
use Illuminate\Contracts\Queue\ShouldQueue;

final class SendDisputeResolvedNotification implements ShouldQueue
{
    public function __construct(
        private readonly NotificationServiceInterface $notificationService
    ) {}

    public function handle(DisputeResolved $event): void
    {
        $this->notificationService->disputeResolved($event->transaction);
    }
}
