Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class MarketWatchSiteCrawler implements SiteCrawlerInterface |
||
13 | { |
||
14 | private const REQUEST_METHOD = 'GET'; |
||
15 | |||
16 | private const REQUEST_URL = 'https://www.marketwatch.com/investing/stock/%s'; |
||
17 | |||
18 | /** @var HtmlCrawlerInterface[] */ |
||
19 | private array $crawlers; |
||
20 | |||
21 | 4 | public function __construct(array $crawlers) |
|
22 | { |
||
23 | 4 | $this->crawlers = $crawlers; |
|
24 | 4 | } |
|
25 | |||
26 | 4 | public function crawl(HttpClientInterface $httpClient, Symbol $symbol): Site |
|
42 | } |
||
43 | } |
||
44 |