1 | <?php |
||
14 | final class SetlistSearchBuilder |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $query; |
||
20 | |||
21 | private function __construct() |
||
27 | |||
28 | /** |
||
29 | * @return SetlistSearchBuilder |
||
30 | */ |
||
31 | public static function create(): self |
||
35 | |||
36 | /** |
||
37 | * @param int $page |
||
38 | * |
||
39 | * @return SetlistSearchBuilder |
||
40 | */ |
||
41 | public function page(int $page): self |
||
47 | |||
48 | /** |
||
49 | * @param string $name |
||
50 | * |
||
51 | * @return SetlistSearchBuilder |
||
52 | */ |
||
53 | public function withArtistName(string $name): self |
||
59 | |||
60 | /** |
||
61 | * @param string $mbid |
||
62 | * |
||
63 | * @return SetlistSearchBuilder |
||
64 | */ |
||
65 | public function withArtistMbid(string $mbid): self |
||
71 | |||
72 | /** |
||
73 | * @param int $tmid |
||
74 | * |
||
75 | * @return SetlistSearchBuilder |
||
76 | */ |
||
77 | public function withArtistTmbid(int $tmid): self |
||
83 | |||
84 | /** |
||
85 | * @param string $name |
||
86 | * |
||
87 | * @return SetlistSearchBuilder |
||
88 | */ |
||
89 | public function withCity(string $name): self |
||
95 | |||
96 | /** |
||
97 | * @param int $id |
||
98 | * |
||
99 | * @return SetlistSearchBuilder |
||
100 | */ |
||
101 | public function withCityId(int $id): self |
||
107 | |||
108 | /** |
||
109 | * @param string $code |
||
110 | * |
||
111 | * @return SetlistSearchBuilder |
||
112 | */ |
||
113 | public function withCountryCode(string $code): self |
||
119 | |||
120 | /** |
||
121 | * @param DateTime $date |
||
122 | * |
||
123 | * @return SetlistSearchBuilder |
||
124 | */ |
||
125 | public function withDate(DateTime $date): self |
||
131 | |||
132 | /** |
||
133 | * @param int $year |
||
134 | * |
||
135 | * @return SetlistSearchBuilder |
||
136 | */ |
||
137 | public function withYear(int $year): self |
||
143 | |||
144 | /** |
||
145 | * @param string $eventId |
||
146 | * |
||
147 | * @return SetlistSearchBuilder |
||
148 | * |
||
149 | * @deprecated since setlist.fm API 1.0 |
||
150 | */ |
||
151 | public function withLastFm(string $eventId): self |
||
157 | |||
158 | /** |
||
159 | * @param DateTime $date |
||
160 | * |
||
161 | * @return SetlistSearchBuilder |
||
162 | */ |
||
163 | public function withLastUpdated(DateTime $date): self |
||
169 | |||
170 | /** |
||
171 | * @param string $name |
||
172 | * |
||
173 | * @return SetlistSearchBuilder |
||
174 | */ |
||
175 | public function withState(string $name): self |
||
181 | |||
182 | /** |
||
183 | * @param string $code |
||
184 | * |
||
185 | * @return SetlistSearchBuilder |
||
186 | */ |
||
187 | public function withStateCode(string $code): self |
||
193 | |||
194 | /** |
||
195 | * @param string $name |
||
196 | * |
||
197 | * @return SetlistSearchBuilder |
||
198 | */ |
||
199 | public function withTourName(string $name): self |
||
205 | |||
206 | /** |
||
207 | * @param string $name |
||
208 | * |
||
209 | * @return SetlistSearchBuilder |
||
210 | */ |
||
211 | public function withVenueName(string $name): self |
||
217 | |||
218 | /** |
||
219 | * @param string $venueId |
||
220 | * |
||
221 | * @return SetlistSearchBuilder |
||
222 | */ |
||
223 | public function withVenueId(string $venueId): self |
||
229 | |||
230 | /** |
||
231 | * @return array |
||
232 | */ |
||
233 | public function getQuery(): array |
||
237 | } |
||
238 |