1 | <?php |
||
17 | class Player extends Entity implements PlayerInterface { |
||
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 team. |
||
33 | * |
||
34 | * @var \TheSportsDb\Entity\TeamInterface |
||
35 | */ |
||
36 | protected $team; |
||
37 | |||
38 | /** |
||
39 | * The nationality. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $nationality; |
||
44 | |||
45 | /** |
||
46 | * The name. |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $name; |
||
51 | |||
52 | /** |
||
53 | * The sport. |
||
54 | * |
||
55 | * @var \TheSportsDb\Entity\SportInterface |
||
56 | */ |
||
57 | protected $sport; |
||
58 | |||
59 | /** |
||
60 | * The birthday. |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $birthDay; |
||
65 | |||
66 | /** |
||
67 | * The date this player signed. |
||
68 | * |
||
69 | * @var string |
||
70 | */ |
||
71 | protected $dateSigned; |
||
72 | |||
73 | /** |
||
74 | * The amount this player signed for. |
||
75 | * |
||
76 | * @var string |
||
77 | */ |
||
78 | protected $signing; |
||
79 | |||
80 | /** |
||
81 | * The wage. |
||
82 | * |
||
83 | * @var string |
||
84 | */ |
||
85 | protected $wage; |
||
86 | |||
87 | /** |
||
88 | * The birth location. |
||
89 | * |
||
90 | * @var string |
||
91 | */ |
||
92 | protected $birthLocation; |
||
93 | |||
94 | /** |
||
95 | * The description. |
||
96 | * |
||
97 | * @var string |
||
98 | */ |
||
99 | protected $description; |
||
100 | |||
101 | /** |
||
102 | * The gender. |
||
103 | * |
||
104 | * @var string |
||
105 | */ |
||
106 | protected $gender; |
||
107 | |||
108 | /** |
||
109 | * The position. |
||
110 | * |
||
111 | * @var string |
||
112 | */ |
||
113 | protected $position; |
||
114 | |||
115 | /** |
||
116 | * The facebook URL. |
||
117 | * |
||
118 | * @var string |
||
119 | */ |
||
120 | protected $facebook; |
||
121 | |||
122 | /** |
||
123 | * The website URL. |
||
124 | * |
||
125 | * @var string |
||
126 | */ |
||
127 | protected $website; |
||
128 | |||
129 | /** |
||
130 | * The twitter profile URL. |
||
131 | * |
||
132 | * @var string |
||
133 | */ |
||
134 | protected $twitter; |
||
135 | |||
136 | /** |
||
137 | * The instagram URL. |
||
138 | * |
||
139 | * @var string |
||
140 | */ |
||
141 | protected $instagram; |
||
142 | |||
143 | /** |
||
144 | * The youtube URL. |
||
145 | * |
||
146 | * @var string |
||
147 | */ |
||
148 | protected $youtube; |
||
149 | |||
150 | /** |
||
151 | * The height. |
||
152 | * |
||
153 | * @var float |
||
154 | */ |
||
155 | protected $height; |
||
156 | |||
157 | /** |
||
158 | * The weight. |
||
159 | * |
||
160 | * @var float |
||
161 | */ |
||
162 | protected $weight; |
||
163 | |||
164 | /** |
||
165 | * The thumbnail URL. |
||
166 | * |
||
167 | * @var string |
||
168 | */ |
||
169 | protected $thumb; |
||
170 | |||
171 | /** |
||
172 | * The cutout URL. |
||
173 | * |
||
174 | * @var string |
||
175 | */ |
||
176 | protected $cutout; |
||
177 | |||
178 | /** |
||
179 | * Whether this player is locked or not. |
||
180 | * |
||
181 | * @var string |
||
182 | */ |
||
183 | protected $locked; |
||
184 | |||
185 | /** |
||
186 | * {@inheritdoc} |
||
187 | */ |
||
188 | 1 | public function getId() { |
|
191 | |||
192 | /** |
||
193 | * {@inheritdoc} |
||
194 | */ |
||
195 | 1 | public function getTeam() { |
|
198 | |||
199 | /** |
||
200 | * {@inheritdoc} |
||
201 | */ |
||
202 | 1 | public function getNationality() { |
|
205 | |||
206 | /** |
||
207 | * {@inheritdoc} |
||
208 | */ |
||
209 | 1 | public function getName() { |
|
212 | |||
213 | /** |
||
214 | * {@inheritdoc} |
||
215 | */ |
||
216 | 1 | public function getSport() { |
|
219 | |||
220 | /** |
||
221 | * {@inheritdoc} |
||
222 | */ |
||
223 | 1 | public function getBirthDay() { |
|
226 | |||
227 | /** |
||
228 | * {@inheritdoc} |
||
229 | */ |
||
230 | 1 | public function getDateSigned() { |
|
233 | |||
234 | /** |
||
235 | * {@inheritdoc} |
||
236 | */ |
||
237 | 1 | public function getSigning() { |
|
240 | |||
241 | /** |
||
242 | * {@inheritdoc} |
||
243 | */ |
||
244 | 1 | public function getWage() { |
|
247 | |||
248 | /** |
||
249 | * {@inheritdoc} |
||
250 | */ |
||
251 | 1 | public function getBirthLocation() { |
|
254 | |||
255 | /** |
||
256 | * {@inheritdoc} |
||
257 | */ |
||
258 | 1 | public function getDescription() { |
|
261 | |||
262 | /** |
||
263 | * {@inheritdoc} |
||
264 | */ |
||
265 | 1 | public function getGender() { |
|
268 | |||
269 | /** |
||
270 | * {@inheritdoc} |
||
271 | */ |
||
272 | 1 | public function getPosition() { |
|
275 | |||
276 | /** |
||
277 | * {@inheritdoc} |
||
278 | */ |
||
279 | 1 | public function getFacebook() { |
|
282 | |||
283 | /** |
||
284 | * {@inheritdoc} |
||
285 | */ |
||
286 | 1 | public function getWebsite() { |
|
289 | |||
290 | /** |
||
291 | * {@inheritdoc} |
||
292 | */ |
||
293 | 1 | public function getTwitter() { |
|
296 | |||
297 | /** |
||
298 | * {@inheritdoc} |
||
299 | */ |
||
300 | 1 | public function getInstagram() { |
|
303 | |||
304 | /** |
||
305 | * {@inheritdoc} |
||
306 | */ |
||
307 | 1 | public function getYoutube() { |
|
310 | |||
311 | /** |
||
312 | * {@inheritdoc} |
||
313 | */ |
||
314 | 1 | public function getHeight() { |
|
317 | |||
318 | /** |
||
319 | * {@inheritdoc} |
||
320 | */ |
||
321 | 1 | public function getWeight() { |
|
324 | |||
325 | /** |
||
326 | * {@inheritdoc} |
||
327 | */ |
||
328 | 1 | public function getThumb() { |
|
331 | |||
332 | /** |
||
333 | * {@inheritdoc} |
||
334 | */ |
||
335 | 1 | public function getCutout() { |
|
338 | |||
339 | /** |
||
340 | * {@inheritdoc} |
||
341 | */ |
||
342 | 1 | public function getLocked() { |
|
345 | |||
346 | /** |
||
347 | * Transforms the team property to a team entity. |
||
348 | * |
||
349 | * @param mixed $value |
||
350 | * The source value of the team property. |
||
351 | * @param \stdClass $context |
||
352 | * The source object representing this player. |
||
353 | * @param EntityManagerInterface $entityManager |
||
354 | * The entity manager. |
||
355 | * |
||
356 | * @return \TheSportsDb\Entity\TeamInterface |
||
357 | * The team entity. |
||
358 | */ |
||
359 | public static function transformTeam($value, $context, EntityManagerInterface $entityManager) { |
||
362 | |||
363 | /** |
||
364 | * Transforms the sport property to a sport entity. |
||
365 | * |
||
366 | * @param mixed $value |
||
367 | * The source value of the sport property. |
||
368 | * @param \stdClass $context |
||
369 | * The source object representing this player. |
||
370 | * @param EntityManagerInterface $entityManager |
||
371 | * The entity manager. |
||
372 | * |
||
373 | * @return \TheSportsDb\Entity\SportInterface |
||
374 | * The sport entity. |
||
375 | */ |
||
376 | public static function transformSport($value, $context, EntityManagerInterface $entityManager) { |
||
379 | |||
380 | /** |
||
381 | * {@inheritdoc} |
||
382 | */ |
||
383 | 1 | protected static function initPropertyMapDefinition() { |
|
495 | |||
496 | } |
||
497 |