<?php

namespace App\Services\Scraping;

use App\Contracts\ListingScraper;
use App\DTOs\ScrapedListingResult;

class NullListingScraper implements ListingScraper
{
    public function scrape(string $url): ScrapedListingResult
    {
        return new ScrapedListingResult(
            url: trim($url),
            products: [],
            error: 'Listing scraping is not configured.',
            source: 'null',
        );
    }
}
