<?php

namespace App\Modules\Stock;

use App\Contracts\AddsDealershipFields;
use App\Contracts\StockProvider;
use App\Facades\Settings;
use App\Modules\Stock\CustomEndpoint\PCKReservedFeed;
use App\Traits\TracksImportStats;

class AutoGrab implements StockProvider
{
    use TracksImportStats;

    public function enabled(): bool
    {
        return Settings::get('stock-autograb-enabled') ?? false;
    }

    public function name(): string
    {
        return 'AutoGrab';
    }

    public function runScheduledImport(bool $fullSync = true): void
    {
        $this->resetStats();
        // No scheduled process, only notifications
    }
}
