<?php

namespace App\Console\Commands;

use App\Services\EVDatabase;
use Illuminate\Console\Command;

class SyncEVData extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'sync:ev-data';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Sync vehicle details from EV data database';

    public function __construct(private readonly EVDatabase $service)
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle(): void
    {
        $this->service->sync();
    }
}
