1
|
|
|
<?php |
2
|
|
|
declare(strict_types=1); |
3
|
|
|
namespace SpotifyApiConnect\Domain\DataTransferObject; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Auto generated data provider |
7
|
|
|
*/ |
8
|
|
|
final class TrackDataProvider extends \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider implements \Xervice\DataProvider\Business\Model\DataProvider\DataProviderInterface |
9
|
|
|
{ |
10
|
|
|
/** @var \SpotifyApiConnect\Domain\DataTransferObject\ArtistDataProvider[] */ |
11
|
|
|
protected $artists = []; |
12
|
|
|
|
13
|
|
|
/** @var \SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider */ |
14
|
|
|
protected $external_urls; |
15
|
|
|
|
16
|
|
|
/** @var string */ |
17
|
|
|
protected $id; |
18
|
|
|
|
19
|
|
|
/** @var string */ |
20
|
|
|
protected $uri; |
21
|
|
|
|
22
|
|
|
/** @var string */ |
23
|
|
|
protected $type; |
24
|
|
|
|
25
|
|
|
/** @var string */ |
26
|
|
|
protected $name; |
27
|
|
|
|
28
|
|
|
/** @var string */ |
29
|
|
|
protected $href; |
30
|
|
|
|
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @return \SpotifyApiConnect\Domain\DataTransferObject\ArtistDataProvider[] |
34
|
|
|
*/ |
35
|
|
|
public function getArtists(): ?array |
36
|
|
|
{ |
37
|
|
|
return $this->artists; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @param \SpotifyApiConnect\Domain\DataTransferObject\ArtistDataProvider[] $artists |
43
|
|
|
* @return TrackDataProvider |
44
|
|
|
*/ |
45
|
|
|
public function setArtists(?array $artists = null) |
46
|
|
|
{ |
47
|
|
|
$this->artists = $artists; |
48
|
|
|
|
49
|
|
|
return $this; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @return TrackDataProvider |
55
|
|
|
*/ |
56
|
|
|
public function unsetArtists() |
57
|
|
|
{ |
58
|
|
|
$this->artists = null; |
59
|
|
|
|
60
|
|
|
return $this; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @return bool |
66
|
|
|
*/ |
67
|
|
|
public function hasArtists() |
68
|
|
|
{ |
69
|
|
|
return ($this->artists !== null && $this->artists !== []); |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @param \SpotifyApiConnect\Domain\DataTransferObject\ArtistDataProvider $artist |
75
|
|
|
* @return TrackDataProvider |
76
|
|
|
*/ |
77
|
|
|
public function addartist(ArtistDataProvider $artist) |
78
|
|
|
{ |
79
|
|
|
$this->artists[] = $artist; return $this; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @return \SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider |
85
|
|
|
*/ |
86
|
|
|
public function getExternal_urls(): ?\SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider |
87
|
|
|
{ |
88
|
|
|
return $this->external_urls; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @param \SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider $external_urls |
94
|
|
|
* @return TrackDataProvider |
95
|
|
|
*/ |
96
|
|
|
public function setExternal_urls(?\SpotifyApiConnect\Domain\DataTransferObject\ExternalUrlDataProvider $external_urls = null) |
97
|
|
|
{ |
98
|
|
|
$this->external_urls = $external_urls; |
99
|
|
|
|
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return TrackDataProvider |
106
|
|
|
*/ |
107
|
|
|
public function unsetExternal_urls() |
108
|
|
|
{ |
109
|
|
|
$this->external_urls = null; |
110
|
|
|
|
111
|
|
|
return $this; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @return bool |
117
|
|
|
*/ |
118
|
|
|
public function hasExternal_urls() |
119
|
|
|
{ |
120
|
|
|
return ($this->external_urls !== null && $this->external_urls !== []); |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @return string |
126
|
|
|
*/ |
127
|
|
|
public function getId(): ?string |
128
|
|
|
{ |
129
|
|
|
return $this->id; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @param string $id |
135
|
|
|
* @return TrackDataProvider |
136
|
|
|
*/ |
137
|
|
|
public function setId(?string $id = null) |
138
|
|
|
{ |
139
|
|
|
$this->id = $id; |
140
|
|
|
|
141
|
|
|
return $this; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @return TrackDataProvider |
147
|
|
|
*/ |
148
|
|
|
public function unsetId() |
149
|
|
|
{ |
150
|
|
|
$this->id = null; |
151
|
|
|
|
152
|
|
|
return $this; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @return bool |
158
|
|
|
*/ |
159
|
|
|
public function hasId() |
160
|
|
|
{ |
161
|
|
|
return ($this->id !== null && $this->id !== []); |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @return string |
167
|
|
|
*/ |
168
|
|
|
public function getUri(): ?string |
169
|
|
|
{ |
170
|
|
|
return $this->uri; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @param string $uri |
176
|
|
|
* @return TrackDataProvider |
177
|
|
|
*/ |
178
|
|
|
public function setUri(?string $uri = null) |
179
|
|
|
{ |
180
|
|
|
$this->uri = $uri; |
181
|
|
|
|
182
|
|
|
return $this; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @return TrackDataProvider |
188
|
|
|
*/ |
189
|
|
|
public function unsetUri() |
190
|
|
|
{ |
191
|
|
|
$this->uri = null; |
192
|
|
|
|
193
|
|
|
return $this; |
194
|
|
|
} |
195
|
|
|
|
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* @return bool |
199
|
|
|
*/ |
200
|
|
|
public function hasUri() |
201
|
|
|
{ |
202
|
|
|
return ($this->uri !== null && $this->uri !== []); |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @return string |
208
|
|
|
*/ |
209
|
|
|
public function getType(): ?string |
210
|
|
|
{ |
211
|
|
|
return $this->type; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* @param string $type |
217
|
|
|
* @return TrackDataProvider |
218
|
|
|
*/ |
219
|
|
|
public function setType(?string $type = null) |
220
|
|
|
{ |
221
|
|
|
$this->type = $type; |
222
|
|
|
|
223
|
|
|
return $this; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* @return TrackDataProvider |
229
|
|
|
*/ |
230
|
|
|
public function unsetType() |
231
|
|
|
{ |
232
|
|
|
$this->type = null; |
233
|
|
|
|
234
|
|
|
return $this; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @return bool |
240
|
|
|
*/ |
241
|
|
|
public function hasType() |
242
|
|
|
{ |
243
|
|
|
return ($this->type !== null && $this->type !== []); |
244
|
|
|
} |
245
|
|
|
|
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* @return string |
249
|
|
|
*/ |
250
|
|
|
public function getName(): ?string |
251
|
|
|
{ |
252
|
|
|
return $this->name; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* @param string $name |
258
|
|
|
* @return TrackDataProvider |
259
|
|
|
*/ |
260
|
|
|
public function setName(?string $name = null) |
261
|
|
|
{ |
262
|
|
|
$this->name = $name; |
263
|
|
|
|
264
|
|
|
return $this; |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
|
268
|
|
|
/** |
269
|
|
|
* @return TrackDataProvider |
270
|
|
|
*/ |
271
|
|
|
public function unsetName() |
272
|
|
|
{ |
273
|
|
|
$this->name = null; |
274
|
|
|
|
275
|
|
|
return $this; |
276
|
|
|
} |
277
|
|
|
|
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* @return bool |
281
|
|
|
*/ |
282
|
|
|
public function hasName() |
283
|
|
|
{ |
284
|
|
|
return ($this->name !== null && $this->name !== []); |
285
|
|
|
} |
286
|
|
|
|
287
|
|
|
|
288
|
|
|
/** |
289
|
|
|
* @return string |
290
|
|
|
*/ |
291
|
|
|
public function getHref(): ?string |
292
|
|
|
{ |
293
|
|
|
return $this->href; |
294
|
|
|
} |
295
|
|
|
|
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* @param string $href |
299
|
|
|
* @return TrackDataProvider |
300
|
|
|
*/ |
301
|
|
|
public function setHref(?string $href = null) |
302
|
|
|
{ |
303
|
|
|
$this->href = $href; |
304
|
|
|
|
305
|
|
|
return $this; |
306
|
|
|
} |
307
|
|
|
|
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @return TrackDataProvider |
311
|
|
|
*/ |
312
|
|
|
public function unsetHref() |
313
|
|
|
{ |
314
|
|
|
$this->href = null; |
315
|
|
|
|
316
|
|
|
return $this; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
|
320
|
|
|
/** |
321
|
|
|
* @return bool |
322
|
|
|
*/ |
323
|
|
|
public function hasHref() |
324
|
|
|
{ |
325
|
|
|
return ($this->href !== null && $this->href !== []); |
326
|
|
|
} |
327
|
|
|
|
328
|
|
|
|
329
|
|
|
/** |
330
|
|
|
* @return array |
331
|
|
|
*/ |
332
|
|
|
protected function getElements(): array |
333
|
|
|
{ |
334
|
|
|
return array ( |
335
|
|
|
'artists' => |
336
|
|
|
array ( |
337
|
|
|
'name' => 'artists', |
338
|
|
|
'allownull' => true, |
339
|
|
|
'default' => '', |
340
|
|
|
'type' => '\\SpotifyApiConnect\\Domain\\DataTransferObject\\ArtistDataProvider[]', |
341
|
|
|
'is_collection' => true, |
342
|
|
|
'is_dataprovider' => false, |
343
|
|
|
'isCamelCase' => false, |
344
|
|
|
'singleton' => 'artist', |
345
|
|
|
'singleton_type' => '\\SpotifyApiConnect\\Domain\\DataTransferObject\\ArtistDataProvider', |
346
|
|
|
), |
347
|
|
|
'external_urls' => |
348
|
|
|
array ( |
349
|
|
|
'name' => 'external_urls', |
350
|
|
|
'allownull' => true, |
351
|
|
|
'default' => '', |
352
|
|
|
'type' => '\\SpotifyApiConnect\\Domain\\DataTransferObject\\ExternalUrlDataProvider', |
353
|
|
|
'is_collection' => false, |
354
|
|
|
'is_dataprovider' => true, |
355
|
|
|
'isCamelCase' => false, |
356
|
|
|
), |
357
|
|
|
'id' => |
358
|
|
|
array ( |
359
|
|
|
'name' => 'id', |
360
|
|
|
'allownull' => true, |
361
|
|
|
'default' => '', |
362
|
|
|
'type' => 'string', |
363
|
|
|
'is_collection' => false, |
364
|
|
|
'is_dataprovider' => false, |
365
|
|
|
'isCamelCase' => false, |
366
|
|
|
), |
367
|
|
|
'uri' => |
368
|
|
|
array ( |
369
|
|
|
'name' => 'uri', |
370
|
|
|
'allownull' => true, |
371
|
|
|
'default' => '', |
372
|
|
|
'type' => 'string', |
373
|
|
|
'is_collection' => false, |
374
|
|
|
'is_dataprovider' => false, |
375
|
|
|
'isCamelCase' => false, |
376
|
|
|
), |
377
|
|
|
'type' => |
378
|
|
|
array ( |
379
|
|
|
'name' => 'type', |
380
|
|
|
'allownull' => true, |
381
|
|
|
'default' => '', |
382
|
|
|
'type' => 'string', |
383
|
|
|
'is_collection' => false, |
384
|
|
|
'is_dataprovider' => false, |
385
|
|
|
'isCamelCase' => false, |
386
|
|
|
), |
387
|
|
|
'name' => |
388
|
|
|
array ( |
389
|
|
|
'name' => 'name', |
390
|
|
|
'allownull' => true, |
391
|
|
|
'default' => '', |
392
|
|
|
'type' => 'string', |
393
|
|
|
'is_collection' => false, |
394
|
|
|
'is_dataprovider' => false, |
395
|
|
|
'isCamelCase' => false, |
396
|
|
|
), |
397
|
|
|
'href' => |
398
|
|
|
array ( |
399
|
|
|
'name' => 'href', |
400
|
|
|
'allownull' => true, |
401
|
|
|
'default' => '', |
402
|
|
|
'type' => 'string', |
403
|
|
|
'is_collection' => false, |
404
|
|
|
'is_dataprovider' => false, |
405
|
|
|
'isCamelCase' => false, |
406
|
|
|
), |
407
|
|
|
); |
408
|
|
|
} |
409
|
|
|
} |
410
|
|
|
|