<?php

namespace App\Services\Parsers;

use App\Contracts\ArticleParserInterface;

class BelgaArticleParser implements ArticleParserInterface
{
    public function canParse(string $url): bool
    {
        return str_contains($url, 'belganewsagency.eu');
    }

    public function extractData(string $html): array
    {
        return BelgaArticlePageParser::extractData($html);
    }

    public function getSourceName(): string
    {
        return 'Belga News Agency';
    }
}
