Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Contracts; |
| 4 | |
| 5 | interface HomepageParserInterface |
| 6 | { |
| 7 | /** |
| 8 | * Check if this parser can handle the given homepage URL |
| 9 | */ |
| 10 | public function canParse(string $url): bool; |
| 11 | |
| 12 | /** |
| 13 | * Extract article URLs from homepage HTML |
| 14 | * @return array<int, string> |
| 15 | */ |
| 16 | public function extractArticleUrls(string $html): array; |
| 17 | |
| 18 | /** |
| 19 | * Get the homepage URL for this source |
| 20 | */ |
| 21 | public function getHomepageUrl(): string; |
| 22 | |
| 23 | /** |
| 24 | * Get the source name for this parser |
| 25 | */ |
| 26 | public function getSourceName(): string; |
| 27 | } |