1 | <?php |
||
15 | final class ArtistEventCrawler extends AbstractCrawler implements ArtistEventCrawlerInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function getArtistYears(string $artist): array |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function getEvents(string $artist, ?int $year, int $page = 1): array |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getYearPages(string $artist, ?int $year): int |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function getYearCount(string $artist, ?int $year, int $page = 1): int |
||
98 | |||
99 | /** |
||
100 | * @param Crawler $node |
||
101 | * |
||
102 | * @return int |
||
103 | */ |
||
104 | private function countListPages(Crawler $node): int |
||
110 | |||
111 | /** |
||
112 | * @param Crawler $node |
||
113 | * |
||
114 | * @return int |
||
115 | */ |
||
116 | private function countListEvents(Crawler $node): int |
||
120 | |||
121 | /** |
||
122 | * @param string $artist |
||
123 | * @param int|null $year |
||
124 | * @param int $page |
||
125 | * |
||
126 | * @return Crawler|null |
||
127 | */ |
||
128 | private function crawlUrl(string $artist, ?int $year = null, int $page = 1): ?Crawler |
||
136 | } |
||
137 |