<?php

namespace App\Console\Commands;

use App\Jobs\CarAndDrivingImportJob;
use Illuminate\Console\Command;
use Illuminate\Foundation\Bus\DispatchesJobs;

class CarAndDrivingDataImport extends Command
{
    use DispatchesJobs;

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'car-and-driving:bulk-import';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Import reviews and other associated data from Car and Driving';

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        $this->dispatch(new CarAndDrivingImportJob());

        return 0;
    }
}
