1 | <?php |
||
14 | final class SetlistSearchBuilder |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $query; |
||
20 | |||
21 | private function __construct() |
||
27 | |||
28 | /** |
||
29 | * @param int $page |
||
30 | * |
||
31 | * @return SetlistSearchBuilder |
||
32 | */ |
||
33 | public function page(int $page): self |
||
39 | |||
40 | /** |
||
41 | * @param string $name |
||
42 | * |
||
43 | * @return SetlistSearchBuilder |
||
44 | */ |
||
45 | public function withArtistName(string $name): self |
||
51 | |||
52 | /** |
||
53 | * @param string $mbid |
||
54 | * |
||
55 | * @return SetlistSearchBuilder |
||
56 | */ |
||
57 | public function withArtistMbid(string $mbid): self |
||
63 | |||
64 | /** |
||
65 | * @param int $tmid |
||
66 | * |
||
67 | * @return SetlistSearchBuilder |
||
68 | */ |
||
69 | public function withArtistTmbid(int $tmid): self |
||
75 | |||
76 | /** |
||
77 | * @param string $name |
||
78 | * |
||
79 | * @return SetlistSearchBuilder |
||
80 | */ |
||
81 | public function withCity(string $name): self |
||
87 | |||
88 | /** |
||
89 | * @param int $id |
||
90 | * |
||
91 | * @return SetlistSearchBuilder |
||
92 | */ |
||
93 | public function withCityId(int $id): self |
||
99 | |||
100 | /** |
||
101 | * @param string $code |
||
102 | * |
||
103 | * @return SetlistSearchBuilder |
||
104 | */ |
||
105 | public function withCountryCode(string $code): self |
||
111 | |||
112 | /** |
||
113 | * @param DateTime $date |
||
114 | * |
||
115 | * @return SetlistSearchBuilder |
||
116 | */ |
||
117 | public function withDate(DateTime $date): self |
||
123 | |||
124 | /** |
||
125 | * @param int $year |
||
126 | * |
||
127 | * @return SetlistSearchBuilder |
||
128 | */ |
||
129 | public function withYear(int $year): self |
||
135 | |||
136 | /** |
||
137 | * @param string $eventId |
||
138 | * |
||
139 | * @return SetlistSearchBuilder |
||
140 | * |
||
141 | * @deprecated since setlist.fm API 1.0 |
||
142 | */ |
||
143 | public function withLastFm(string $eventId): self |
||
149 | |||
150 | /** |
||
151 | * @param DateTime $date |
||
152 | * |
||
153 | * @return SetlistSearchBuilder |
||
154 | */ |
||
155 | public function withLastUpdated(DateTime $date): self |
||
161 | |||
162 | /** |
||
163 | * @param string $name |
||
164 | * |
||
165 | * @return SetlistSearchBuilder |
||
166 | */ |
||
167 | public function withState(string $name): self |
||
173 | |||
174 | /** |
||
175 | * @param string $code |
||
176 | * |
||
177 | * @return SetlistSearchBuilder |
||
178 | */ |
||
179 | public function withStateCode(string $code): self |
||
185 | |||
186 | /** |
||
187 | * @param string $name |
||
188 | * |
||
189 | * @return SetlistSearchBuilder |
||
190 | */ |
||
191 | public function withTourName(string $name): self |
||
197 | |||
198 | /** |
||
199 | * @param string $name |
||
200 | * |
||
201 | * @return SetlistSearchBuilder |
||
202 | */ |
||
203 | public function withVenueName(string $name): self |
||
209 | |||
210 | /** |
||
211 | * @param string $venueId |
||
212 | * |
||
213 | * @return SetlistSearchBuilder |
||
214 | */ |
||
215 | public function withVenueId(string $venueId): self |
||
221 | |||
222 | /** |
||
223 | * @return array |
||
224 | */ |
||
225 | public function getQuery(): array |
||
229 | } |
||
230 |