fedi-feed-router/backend/src/Domains/Article/Contracts/HomepageParserInterface.php

27 lines
580 B
PHP
Raw Normal View History

2025-06-29 21:33:18 +02:00
<?php
2025-08-15 16:39:18 +02:00
namespace Domains\Article\Contracts;
2025-06-29 21:33:18 +02:00
interface HomepageParserInterface
{
/**
* Check if this parser can handle the given homepage URL
*/
public function canParse(string $url): bool;
/**
* Extract article URLs from homepage HTML
2025-07-07 00:51:32 +02:00
* @return array<int, string>
2025-06-29 21:33:18 +02:00
*/
public function extractArticleUrls(string $html): array;
/**
* Get the homepage URL for this source
*/
public function getHomepageUrl(): string;
/**
* Get the source name for this parser
*/
public function getSourceName(): string;
}