<?php

namespace App\Console\Commands;

use App\Modules\Leasing\Jobs\GenerateFinanceJob;
use Illuminate\Console\Command;
use Illuminate\Foundation\Bus\DispatchesJobs;

class GenerateLeaseFinance extends Command
{
    use DispatchesJobs;

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'leasing:generate-finance-examples';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Generate lease variant finance examples';

    public function handle()
    {
        new GenerateFinanceJob()->handle();
        return self::SUCCESS;
    }
}
