<?php

namespace App\Listeners\Packages;

use App\Events\Packages\EventPackagePhotoThresholdReached;
use App\Jobs\Packages\SendEventPackagePhotoThresholdWarning;

class QueuePhotoThresholdNotification
{
    public function handle(EventPackagePhotoThresholdReached $event): void
    {
        SendEventPackagePhotoThresholdWarning::dispatch(
            $event->eventPackage->id,
            $event->threshold,
            $event->limit,
            $event->used
        );
    }
}
