<?php

namespace App\Console\Commands;

use App\Modules\Jobseeker\JobSeekerSubscriptionManagementModule; 

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log; 

class CronJobSeekerSubscriptionSetStatusToExpire extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'cron:job-seeker-subscription-set-status-to-expire';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Set Job Seeker Subscription to expire if record duration column exeeds current date';

    /**
     * Execute the console command.
     */
    public function handle(): void
    {
        Log::info('Task Scheduler Command Start : Set Job Seeker Subscription to expire if record duration column exeeds current date');

        (new JobSeekerSubscriptionManagementModule())->itemsSetStatusToExpire();
    }
}

