<?php

namespace App\Listeners\Packages;

use App\Events\Packages\EventPackageGuestThresholdReached;
use App\Jobs\Packages\SendEventPackageGuestThresholdWarning;

class QueueGuestThresholdNotification
{
    public function handle(EventPackageGuestThresholdReached $event): void
    {
        SendEventPackageGuestThresholdWarning::dispatch(
            $event->eventPackage->id,
            $event->threshold,
            $event->limit,
            $event->used
        );
    }
}
