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
3namespace App\Contracts;
4
5interface ArticleParserInterface
6{
7    /**
8     * Check if this parser can handle the given URL
9     */
10    public function canParse(string $url): bool;
11
12    /**
13     * Extract article data from HTML
14     * @return array<string, mixed>
15     */
16    public function extractData(string $html): array;
17
18    /**
19     * Get the source name for this parser
20     */
21    public function getSourceName(): string;
22}