| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Crawler implements CrawlerInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $link = 'https://news.abs-cbn.com/news'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Returns an array of articles to scrape. |
||
| 24 | * |
||
| 25 | * @return string[] |
||
| 26 | */ |
||
| 27 | 3 | public function crawl() |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Returns the allowed article URLs to scrape. |
||
| 49 | * |
||
| 50 | * @param string[] $items |
||
| 51 | * @return string[] |
||
| 52 | */ |
||
| 53 | protected function verify($items) |
||
| 69 |