<?php

namespace App\Modules\Stock;

use App\Contracts\StockProvider;
use App\Facades\Settings;
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
    }
}
