<?php

namespace App\Listeners\Packages;

use App\Events\Packages\TenantPackageExpiring;
use App\Jobs\Packages\SendTenantPackageExpiringNotification;

class QueueTenantPackageExpiringNotification
{
    public function handle(TenantPackageExpiring $event): void
    {
        SendTenantPackageExpiringNotification::dispatch(
            $event->tenantPackage->id,
            $event->daysRemaining
        );
    }
}
