<?php

namespace App\Listeners\Packages;

use App\Events\Packages\TenantPackageEventLimitReached;
use App\Jobs\Packages\SendTenantPackageEventLimitNotification;

class QueueTenantEventLimitNotification
{
    public function handle(TenantPackageEventLimitReached $event): void
    {
        SendTenantPackageEventLimitNotification::dispatch(
            $event->tenantPackage->id,
            $event->limit
        );
    }
}
