1 | <?php |
||
8 | final class ArtistEventCrawler extends AbstractCrawler implements ArtistEventCrawlerInterface |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | */ |
||
13 | public function getArtistYears(string $artist): array |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function getEvents(string $artist, ?int $year, int $page = 1): array |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getYearPages(string $artist, ?int $year): int |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getYearCount(string $artist, ?int $year, int $page = 1): int |
||
91 | |||
92 | /** |
||
93 | * @param Crawler $node |
||
94 | * |
||
95 | * @return int |
||
96 | */ |
||
97 | private function countListPages(Crawler $node): int |
||
103 | |||
104 | /** |
||
105 | * @param Crawler $node |
||
106 | * |
||
107 | * @return int |
||
108 | */ |
||
109 | private function countListEvents(Crawler $node): int |
||
113 | |||
114 | /** |
||
115 | * @param string $artist |
||
116 | * @param int|null $year |
||
117 | * @param int $page |
||
118 | * |
||
119 | * @return Crawler|null |
||
120 | */ |
||
121 | private function crawlUrl(string $artist, ?int $year = null, int $page = 1): ?Crawler |
||
129 | } |
||
130 |