1 | <?php |
||
17 | class Team extends Entity implements TeamInterface { |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | protected static $propertyMapDefinition; |
||
23 | |||
24 | /** |
||
25 | * The primary identifier. |
||
26 | * |
||
27 | * @var mixed |
||
28 | */ |
||
29 | protected $id; |
||
30 | |||
31 | /** |
||
32 | * The name. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $name; |
||
37 | |||
38 | /** |
||
39 | * The short name. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $teamShort; |
||
44 | |||
45 | /** |
||
46 | * The alternate name |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $alternateName; |
||
51 | |||
52 | /** |
||
53 | * The year the team was formed. |
||
54 | * |
||
55 | * @var int |
||
56 | */ |
||
57 | protected $formedYear; |
||
58 | |||
59 | /** |
||
60 | * The sport of this team. |
||
61 | * |
||
62 | * @var \TheSportsDb\Entity\SportInterface |
||
63 | */ |
||
64 | protected $sport; |
||
65 | |||
66 | /** |
||
67 | * The league of this team. |
||
68 | * |
||
69 | * @var \TheSportsDb\Entity\LeagueInterface |
||
70 | */ |
||
71 | protected $league; |
||
72 | |||
73 | /** |
||
74 | * The division. |
||
75 | * |
||
76 | * @var string |
||
77 | */ |
||
78 | protected $division; |
||
79 | |||
80 | /** |
||
81 | * The manager. |
||
82 | * |
||
83 | * @var string |
||
84 | */ |
||
85 | protected $manager; |
||
86 | |||
87 | /** |
||
88 | * The stadium. |
||
89 | * |
||
90 | * @var string |
||
91 | */ |
||
92 | protected $stadium; |
||
93 | |||
94 | /** |
||
95 | * The keywords. |
||
96 | * |
||
97 | * @var string |
||
98 | */ |
||
99 | protected $keywords; |
||
100 | |||
101 | /** |
||
102 | * The URL of the RSS feed. |
||
103 | * |
||
104 | * @var string |
||
105 | */ |
||
106 | protected $rss; |
||
107 | |||
108 | /** |
||
109 | * The URL of the stadium thumbnail. |
||
110 | * |
||
111 | * @var string |
||
112 | */ |
||
113 | protected $stadiumThumb; |
||
114 | |||
115 | /** |
||
116 | * The stadium description. |
||
117 | * |
||
118 | * @var string |
||
119 | */ |
||
120 | protected $stadiumDescription; |
||
121 | |||
122 | /** |
||
123 | * The stadium location. |
||
124 | * |
||
125 | * @var string |
||
126 | */ |
||
127 | protected $stadiumLocation; |
||
128 | |||
129 | /** |
||
130 | * The stadium location. |
||
131 | * |
||
132 | * @var int |
||
133 | */ |
||
134 | protected $stadiumCapacity; |
||
135 | |||
136 | /** |
||
137 | * The URL to the website. |
||
138 | * |
||
139 | * @var string |
||
140 | */ |
||
141 | protected $website; |
||
142 | |||
143 | /** |
||
144 | * The URL to the facebook page. |
||
145 | * |
||
146 | * @var string |
||
147 | */ |
||
148 | protected $facebook; |
||
149 | |||
150 | /** |
||
151 | * The URL to the twitter profile. |
||
152 | * |
||
153 | * @var string |
||
154 | */ |
||
155 | protected $twitter; |
||
156 | |||
157 | /** |
||
158 | * The URL to the instagram page. |
||
159 | * |
||
160 | * @var string |
||
161 | */ |
||
162 | protected $instagram; |
||
163 | |||
164 | /** |
||
165 | * The description. |
||
166 | * |
||
167 | * @var string |
||
168 | */ |
||
169 | protected $description; |
||
170 | |||
171 | /** |
||
172 | * The gender. |
||
173 | * |
||
174 | * @var string |
||
175 | */ |
||
176 | protected $gender; |
||
177 | |||
178 | /** |
||
179 | * The country. |
||
180 | * |
||
181 | * @var string |
||
182 | */ |
||
183 | protected $country; |
||
184 | |||
185 | /** |
||
186 | * The URL to the badge. |
||
187 | * |
||
188 | * @var string |
||
189 | */ |
||
190 | protected $badge; |
||
191 | |||
192 | /** |
||
193 | * The URL to the jersey. |
||
194 | * |
||
195 | * @var string |
||
196 | */ |
||
197 | protected $jersey; |
||
198 | |||
199 | /** |
||
200 | * The URL to the logo. |
||
201 | * |
||
202 | * @var string |
||
203 | */ |
||
204 | protected $logo; |
||
205 | |||
206 | /** |
||
207 | * The URL to the banner. |
||
208 | * |
||
209 | * @var string |
||
210 | */ |
||
211 | protected $banner; |
||
212 | |||
213 | /** |
||
214 | * The URL to the youtube page. |
||
215 | * |
||
216 | * @var string |
||
217 | */ |
||
218 | protected $youtube; |
||
219 | |||
220 | /** |
||
221 | * Whether or not the team is locked. |
||
222 | * |
||
223 | * @var string |
||
224 | */ |
||
225 | protected $locked; |
||
226 | |||
227 | /** |
||
228 | * {@inheritdoc} |
||
229 | */ |
||
230 | 1 | public function getId() { |
|
231 | 1 | return $this->id; |
|
232 | } |
||
233 | |||
234 | /** |
||
235 | * {@inheritdoc} |
||
236 | */ |
||
237 | 1 | public function getName() { |
|
240 | |||
241 | /** |
||
242 | * {@inheritdoc} |
||
243 | */ |
||
244 | 1 | public function getTeamShort() { |
|
247 | |||
248 | /** |
||
249 | * {@inheritdoc} |
||
250 | */ |
||
251 | 1 | public function getAlternateName() { |
|
254 | |||
255 | /** |
||
256 | * {@inheritdoc} |
||
257 | */ |
||
258 | 1 | public function getFormedYear() { |
|
261 | |||
262 | /** |
||
263 | * {@inheritdoc} |
||
264 | */ |
||
265 | 1 | public function getSport() { |
|
268 | |||
269 | /** |
||
270 | * {@inheritdoc} |
||
271 | */ |
||
272 | 1 | public function getLeague() { |
|
275 | |||
276 | /** |
||
277 | * {@inheritdoc} |
||
278 | */ |
||
279 | 1 | public function getDivision() { |
|
282 | |||
283 | /** |
||
284 | * {@inheritdoc} |
||
285 | */ |
||
286 | 1 | public function getManager() { |
|
289 | |||
290 | /** |
||
291 | * {@inheritdoc} |
||
292 | */ |
||
293 | 1 | public function getStadium() { |
|
296 | |||
297 | /** |
||
298 | * {@inheritdoc} |
||
299 | */ |
||
300 | 1 | public function getKeywords() { |
|
303 | |||
304 | /** |
||
305 | * {@inheritdoc} |
||
306 | */ |
||
307 | 1 | public function getRss() { |
|
310 | |||
311 | /** |
||
312 | * {@inheritdoc} |
||
313 | */ |
||
314 | 1 | public function getStadiumThumb() { |
|
317 | |||
318 | /** |
||
319 | * {@inheritdoc} |
||
320 | */ |
||
321 | 1 | public function getStadiumDescription() { |
|
324 | |||
325 | /** |
||
326 | * {@inheritdoc} |
||
327 | */ |
||
328 | 1 | public function getStadiumLocation() { |
|
331 | |||
332 | /** |
||
333 | * {@inheritdoc} |
||
334 | */ |
||
335 | 1 | public function getStadiumCapacity() { |
|
338 | |||
339 | /** |
||
340 | * {@inheritdoc} |
||
341 | */ |
||
342 | 1 | public function getWebsite() { |
|
345 | |||
346 | /** |
||
347 | * {@inheritdoc} |
||
348 | */ |
||
349 | 1 | public function getFacebook() { |
|
352 | |||
353 | /** |
||
354 | * {@inheritdoc} |
||
355 | */ |
||
356 | 1 | public function getTwitter() { |
|
359 | |||
360 | /** |
||
361 | * {@inheritdoc} |
||
362 | */ |
||
363 | 1 | public function getInstagram() { |
|
366 | |||
367 | /** |
||
368 | * {@inheritdoc} |
||
369 | */ |
||
370 | 1 | public function getDescription() { |
|
373 | |||
374 | /** |
||
375 | * {@inheritdoc} |
||
376 | */ |
||
377 | 1 | public function getGender() { |
|
380 | |||
381 | /** |
||
382 | * {@inheritdoc} |
||
383 | */ |
||
384 | 1 | public function getCountry() { |
|
387 | |||
388 | /** |
||
389 | * {@inheritdoc} |
||
390 | */ |
||
391 | 1 | public function getBadge() { |
|
394 | |||
395 | /** |
||
396 | * {@inheritdoc} |
||
397 | */ |
||
398 | 1 | public function getJersey() { |
|
401 | |||
402 | /** |
||
403 | * {@inheritdoc} |
||
404 | */ |
||
405 | 1 | public function getLogo() { |
|
408 | |||
409 | /** |
||
410 | * {@inheritdoc} |
||
411 | */ |
||
412 | 1 | public function getBanner() { |
|
415 | |||
416 | /** |
||
417 | * {@inheritdoc} |
||
418 | */ |
||
419 | 1 | public function getYoutube() { |
|
422 | |||
423 | /** |
||
424 | * {@inheritdoc} |
||
425 | */ |
||
426 | 1 | public function getLocked() { |
|
429 | |||
430 | /** |
||
431 | * Transforms the sport property to a sport entity. |
||
432 | * |
||
433 | * @param mixed $value |
||
434 | * The source value of the sport property. |
||
435 | * @param \stdClass $context |
||
436 | * The source object representing this team. |
||
437 | * @param EntityManagerInterface $entityManager |
||
438 | * The entity manager. |
||
439 | * |
||
440 | * @return \TheSportsDb\Entity\SportInterface |
||
441 | * The sport entity. |
||
442 | */ |
||
443 | public static function transformSport($value, $context, EntityManagerInterface $entityManager) { |
||
446 | |||
447 | |||
448 | /** |
||
449 | * Transforms the league property to a league entity. |
||
450 | * |
||
451 | * @param mixed $value |
||
452 | * The source value of the league property. |
||
453 | * @param \stdClass $context |
||
454 | * The source object representing this team. |
||
455 | * @param EntityManagerInterface $entityManager |
||
456 | * The entity manager. |
||
457 | * |
||
458 | * @return \TheSportsDb\Entity\LeagueInterface |
||
459 | * The league entity. |
||
460 | */ |
||
461 | public static function transformLeague($value, $context, EntityManagerInterface $entityManager) { |
||
464 | |||
465 | /** |
||
466 | * {@inheritdoc} |
||
467 | */ |
||
468 | 1 | protected static function initPropertyMapDefinition() { |
|
597 | |||
598 | } |
||
599 |