1
|
|
|
<?php |
2
|
|
|
namespace Redbox\Twitch\Entity; |
3
|
|
|
|
4
|
|
|
class Channel |
5
|
|
|
{ |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @var string |
9
|
|
|
*/ |
10
|
|
|
protected $profile_banner_background_color; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @var string |
14
|
|
|
*/ |
15
|
|
|
protected $broadcaster_language; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var string |
19
|
|
|
*/ |
20
|
|
|
protected $profile_banner; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
protected $video_banner; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var string |
29
|
|
|
*/ |
30
|
|
|
protected $display_name; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var string |
34
|
|
|
*/ |
35
|
|
|
protected $created_at; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var string |
39
|
|
|
*/ |
40
|
|
|
protected $updated_at; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var string |
44
|
|
|
*/ |
45
|
|
|
protected $background; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var string |
49
|
|
|
*/ |
50
|
|
|
protected $stream_key; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var string |
54
|
|
|
*/ |
55
|
|
|
protected $followers; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string |
59
|
|
|
*/ |
60
|
|
|
protected $language; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @var bool |
64
|
|
|
*/ |
65
|
|
|
protected $partner; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @var string |
69
|
|
|
*/ |
70
|
|
|
protected $banner; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @var string |
74
|
|
|
*/ |
75
|
|
|
protected $mature; |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @var string |
79
|
|
|
*/ |
80
|
|
|
protected $status; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @var int |
84
|
|
|
*/ |
85
|
|
|
protected $delay; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @var int |
89
|
|
|
*/ |
90
|
|
|
protected $views; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var string |
94
|
|
|
*/ |
95
|
|
|
protected $email; |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @var string |
99
|
|
|
*/ |
100
|
|
|
protected $game; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @var string |
104
|
|
|
*/ |
105
|
|
|
protected $name; |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @var string |
109
|
|
|
*/ |
110
|
|
|
protected $logo; |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @var string |
114
|
|
|
*/ |
115
|
|
|
protected $url; |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @return string |
119
|
|
|
*/ |
120
|
|
|
public function getProfileBannerBackgroundColor() |
121
|
|
|
{ |
122
|
|
|
return $this->profile_banner_background_color; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @param string $profile_banner_background_color |
127
|
|
|
*/ |
128
|
|
|
public function setProfileBannerBackgroundColor($profile_banner_background_color) |
129
|
|
|
{ |
130
|
|
|
$this->profile_banner_background_color = $profile_banner_background_color; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @return string |
135
|
|
|
*/ |
136
|
|
|
public function getBroadcasterLanguage() |
137
|
|
|
{ |
138
|
|
|
return $this->broadcaster_language; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @param string $broadcaster_language |
143
|
|
|
*/ |
144
|
|
|
public function setBroadcasterLanguage($broadcaster_language) |
145
|
|
|
{ |
146
|
|
|
$this->broadcaster_language = $broadcaster_language; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @return string |
151
|
|
|
*/ |
152
|
|
|
public function getProfileBanner() |
153
|
|
|
{ |
154
|
|
|
return $this->profile_banner; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @param string $profile_banner |
159
|
|
|
*/ |
160
|
|
|
public function setProfileBanner($profile_banner) |
161
|
|
|
{ |
162
|
|
|
$this->profile_banner = $profile_banner; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @return string |
167
|
|
|
*/ |
168
|
|
|
public function getVideoBanner() |
169
|
|
|
{ |
170
|
|
|
return $this->video_banner; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @param string $video_banner |
175
|
|
|
*/ |
176
|
|
|
public function setVideoBanner($video_banner) |
177
|
|
|
{ |
178
|
|
|
$this->video_banner = $video_banner; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* @return string |
183
|
|
|
*/ |
184
|
|
|
public function getDisplayName() |
185
|
|
|
{ |
186
|
|
|
return $this->display_name; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* @param string $display_name |
191
|
|
|
*/ |
192
|
|
|
public function setDisplayName($display_name) |
193
|
|
|
{ |
194
|
|
|
$this->display_name = $display_name; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* @return string |
199
|
|
|
*/ |
200
|
|
|
public function getCreatedAt() |
201
|
|
|
{ |
202
|
|
|
return $this->created_at; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @param string $created_at |
207
|
|
|
*/ |
208
|
|
|
public function setCreatedAt($created_at) |
209
|
|
|
{ |
210
|
|
|
$this->created_at = $created_at; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @return string |
215
|
|
|
*/ |
216
|
|
|
public function getUpdatedAt() |
217
|
|
|
{ |
218
|
|
|
return $this->updated_at; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @param string $updated_at |
223
|
|
|
*/ |
224
|
|
|
public function setUpdatedAt($updated_at) |
225
|
|
|
{ |
226
|
|
|
$this->updated_at = $updated_at; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* @return string |
231
|
|
|
*/ |
232
|
|
|
public function getBackground() |
233
|
|
|
{ |
234
|
|
|
return $this->background; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* @param string $background |
239
|
|
|
*/ |
240
|
|
|
public function setBackground($background) |
241
|
|
|
{ |
242
|
|
|
$this->background = $background; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @return string |
247
|
|
|
*/ |
248
|
|
|
public function getStreamKey() |
249
|
|
|
{ |
250
|
|
|
return $this->stream_key; |
251
|
|
|
} |
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* @param string $stream_key |
255
|
|
|
*/ |
256
|
|
|
public function setStreamKey($stream_key) |
257
|
|
|
{ |
258
|
|
|
$this->stream_key = $stream_key; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
/** |
262
|
|
|
* @return string |
263
|
|
|
*/ |
264
|
|
|
public function getFollowers() |
265
|
|
|
{ |
266
|
|
|
return $this->followers; |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
/** |
270
|
|
|
* @param string $followers |
271
|
|
|
*/ |
272
|
|
|
public function setFollowers($followers) |
273
|
|
|
{ |
274
|
|
|
$this->followers = $followers; |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
/** |
278
|
|
|
* @return string |
279
|
|
|
*/ |
280
|
|
|
public function getLanguage() |
281
|
|
|
{ |
282
|
|
|
return $this->language; |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @param string $language |
287
|
|
|
*/ |
288
|
|
|
public function setLanguage($language) |
289
|
|
|
{ |
290
|
|
|
$this->language = $language; |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @return boolean |
295
|
|
|
*/ |
296
|
|
|
public function isPartner() |
297
|
|
|
{ |
298
|
|
|
return $this->partner; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
/** |
302
|
|
|
* @param boolean $partner |
303
|
|
|
*/ |
304
|
|
|
public function setPartner($partner) |
305
|
|
|
{ |
306
|
|
|
$this->partner = $partner; |
307
|
|
|
} |
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @return string |
311
|
|
|
*/ |
312
|
|
|
public function getBanner() |
313
|
|
|
{ |
314
|
|
|
return $this->banner; |
315
|
|
|
} |
316
|
|
|
|
317
|
|
|
/** |
318
|
|
|
* @param string $banner |
319
|
|
|
*/ |
320
|
|
|
public function setBanner($banner) |
321
|
|
|
{ |
322
|
|
|
$this->banner = $banner; |
323
|
|
|
} |
324
|
|
|
|
325
|
|
|
/** |
326
|
|
|
* @return string |
327
|
|
|
*/ |
328
|
|
|
public function getMature() |
329
|
|
|
{ |
330
|
|
|
return $this->mature; |
331
|
|
|
} |
332
|
|
|
|
333
|
|
|
/** |
334
|
|
|
* @param string $mature |
335
|
|
|
*/ |
336
|
|
|
public function setMature($mature) |
337
|
|
|
{ |
338
|
|
|
$this->mature = $mature; |
339
|
|
|
} |
340
|
|
|
|
341
|
|
|
/** |
342
|
|
|
* @return string |
343
|
|
|
*/ |
344
|
|
|
public function getStatus() |
345
|
|
|
{ |
346
|
|
|
return $this->status; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* @param string $status |
351
|
|
|
*/ |
352
|
|
|
public function setStatus($status) |
353
|
|
|
{ |
354
|
|
|
$this->status = $status; |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
/** |
358
|
|
|
* @return int |
359
|
|
|
*/ |
360
|
|
|
public function getDelay() |
361
|
|
|
{ |
362
|
|
|
return $this->delay; |
363
|
|
|
} |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* @param int $delay |
367
|
|
|
*/ |
368
|
|
|
public function setDelay($delay) |
369
|
|
|
{ |
370
|
|
|
$this->delay = $delay; |
371
|
|
|
} |
372
|
|
|
|
373
|
|
|
/** |
374
|
|
|
* @return int |
375
|
|
|
*/ |
376
|
|
|
public function getViews() |
377
|
|
|
{ |
378
|
|
|
return $this->views; |
379
|
|
|
} |
380
|
|
|
|
381
|
|
|
/** |
382
|
|
|
* @param int $views |
383
|
|
|
*/ |
384
|
|
|
public function setViews($views) |
385
|
|
|
{ |
386
|
|
|
$this->views = $views; |
387
|
|
|
} |
388
|
|
|
|
389
|
|
|
/** |
390
|
|
|
* @return string |
391
|
|
|
*/ |
392
|
|
|
public function getEmail() |
393
|
|
|
{ |
394
|
|
|
return $this->email; |
395
|
|
|
} |
396
|
|
|
|
397
|
|
|
/** |
398
|
|
|
* @param string $email |
399
|
|
|
*/ |
400
|
|
|
public function setEmail($email) |
401
|
|
|
{ |
402
|
|
|
$this->email = $email; |
403
|
|
|
} |
404
|
|
|
|
405
|
|
|
/** |
406
|
|
|
* @return string |
407
|
|
|
*/ |
408
|
|
|
public function getGame() |
409
|
|
|
{ |
410
|
|
|
return $this->game; |
411
|
|
|
} |
412
|
|
|
|
413
|
|
|
/** |
414
|
|
|
* @param string $game |
415
|
|
|
*/ |
416
|
|
|
public function setGame($game) |
417
|
|
|
{ |
418
|
|
|
$this->game = $game; |
419
|
|
|
} |
420
|
|
|
|
421
|
|
|
/** |
422
|
|
|
* @return string |
423
|
|
|
*/ |
424
|
|
|
public function getName() |
425
|
|
|
{ |
426
|
|
|
return $this->name; |
427
|
|
|
} |
428
|
|
|
|
429
|
|
|
/** |
430
|
|
|
* @param string $name |
431
|
|
|
*/ |
432
|
|
|
public function setName($name) |
433
|
|
|
{ |
434
|
|
|
$this->name = $name; |
435
|
|
|
} |
436
|
|
|
|
437
|
|
|
/** |
438
|
|
|
* @return string |
439
|
|
|
*/ |
440
|
|
|
public function getLogo() |
441
|
|
|
{ |
442
|
|
|
return $this->logo; |
443
|
|
|
} |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* @param string $logo |
447
|
|
|
*/ |
448
|
|
|
public function setLogo($logo) |
449
|
|
|
{ |
450
|
|
|
$this->logo = $logo; |
451
|
|
|
} |
452
|
|
|
|
453
|
|
|
/** |
454
|
|
|
* @return string |
455
|
|
|
*/ |
456
|
|
|
public function getUrl() |
457
|
|
|
{ |
458
|
|
|
return $this->url; |
459
|
|
|
} |
460
|
|
|
|
461
|
|
|
/** |
462
|
|
|
* @param string $url |
463
|
|
|
*/ |
464
|
|
|
public function setUrl($url) |
465
|
|
|
{ |
466
|
|
|
$this->url = $url; |
467
|
|
|
} |
468
|
|
|
} |