1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace VideoGamesRecords\CoreBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* PlayerGame |
9
|
|
|
* |
10
|
|
|
* @ORM\Table(name="vgr_player_game", indexes={@ORM\Index(name="idxIdGame", columns={"idGame"}), @ORM\Index(name="idxIdPlayer", columns={"idPlayer"})}) |
11
|
|
|
* @ORM\Entity(repositoryClass="VideoGamesRecords\CoreBundle\Repository\PlayerGameRepository") |
12
|
|
|
*/ |
13
|
|
|
class PlayerGame |
14
|
|
|
{ |
15
|
|
|
/** |
16
|
|
|
* @var Player |
17
|
|
|
* |
18
|
|
|
* @ORM\Id |
19
|
|
|
* @ORM\ManyToOne(targetEntity="VideoGamesRecords\CoreBundle\Entity\Player", inversedBy="playerGame") |
20
|
|
|
* @ORM\JoinColumns({ |
21
|
|
|
* @ORM\JoinColumn(name="idPlayer", referencedColumnName="idPlayer", nullable=false) |
22
|
|
|
* }) |
23
|
|
|
*/ |
24
|
|
|
private $player; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var Game |
28
|
|
|
* |
29
|
|
|
* @ORM\Id |
30
|
|
|
* @ORM\ManyToOne(targetEntity="VideoGamesRecords\CoreBundle\Entity\Game", fetch="EAGER") |
31
|
|
|
* @ORM\JoinColumns({ |
32
|
|
|
* @ORM\JoinColumn(name="idGame", referencedColumnName="id", nullable=false) |
33
|
|
|
* }) |
34
|
|
|
*/ |
35
|
|
|
private $game; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var integer |
39
|
|
|
* |
40
|
|
|
* @ORM\Column(name="rankPointChart", type="integer", nullable=false) |
41
|
|
|
*/ |
42
|
|
|
private $rankPointChart; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var integer |
46
|
|
|
* |
47
|
|
|
* @ORM\Column(name="rankMedal", type="integer", nullable=false) |
48
|
|
|
*/ |
49
|
|
|
private $rankMedal; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var integer |
53
|
|
|
* |
54
|
|
|
* @ORM\Column(name="chartRank0", type="integer", nullable=false) |
55
|
|
|
*/ |
56
|
|
|
private $chartRank0; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var integer |
60
|
|
|
* |
61
|
|
|
* @ORM\Column(name="chartRank1", type="integer", nullable=false) |
62
|
|
|
*/ |
63
|
|
|
private $chartRank1; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var integer |
67
|
|
|
* |
68
|
|
|
* @ORM\Column(name="chartRank2", type="integer", nullable=false) |
69
|
|
|
*/ |
70
|
|
|
private $chartRank2; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @var integer |
74
|
|
|
* |
75
|
|
|
* @ORM\Column(name="chartRank3", type="integer", nullable=false) |
76
|
|
|
*/ |
77
|
|
|
private $chartRank3; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var integer |
81
|
|
|
* |
82
|
|
|
* @ORM\Column(name="chartRank4", type="integer", nullable=false) |
83
|
|
|
*/ |
84
|
|
|
private $chartRank4; |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @var integer |
88
|
|
|
* |
89
|
|
|
* @ORM\Column(name="chartRank5", type="integer", nullable=false) |
90
|
|
|
*/ |
91
|
|
|
private $chartRank5; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @var integer |
95
|
|
|
* |
96
|
|
|
* @ORM\Column(name="pointChart", type="integer", nullable=false) |
97
|
|
|
*/ |
98
|
|
|
private $pointChart; |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @var integer |
102
|
|
|
* |
103
|
|
|
* @ORM\Column(name="pointChartWithoutDlc", type="integer", nullable=false) |
104
|
|
|
*/ |
105
|
|
|
private $pointChartWithoutDlc; |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @var integer |
109
|
|
|
* |
110
|
|
|
* @ORM\Column(name="nbChart", type="integer", nullable=false) |
111
|
|
|
*/ |
112
|
|
|
private $nbChart; |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @var integer |
116
|
|
|
* |
117
|
|
|
* @ORM\Column(name="nbChartProven", type="integer", nullable=false) |
118
|
|
|
*/ |
119
|
|
|
private $nbChartProven; |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @var integer |
123
|
|
|
* |
124
|
|
|
* @ORM\Column(name="nbChartWithoutDlc", type="integer", nullable=false) |
125
|
|
|
*/ |
126
|
|
|
private $nbChartWithoutDlc; |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @var integer |
130
|
|
|
* |
131
|
|
|
* @ORM\Column(name="nbChartProvenWithoutDlc", type="integer", nullable=false) |
132
|
|
|
*/ |
133
|
|
|
private $nbChartProvenWithoutDlc; |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @var integer |
137
|
|
|
* |
138
|
|
|
* @ORM\Column(name="pointGame", type="integer", nullable=false) |
139
|
|
|
*/ |
140
|
|
|
private $pointGame; |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @var integer |
144
|
|
|
* |
145
|
|
|
* @ORM\Column(name="nbEqual", type="integer", nullable=false) |
146
|
|
|
*/ |
147
|
|
|
private $nbEqual = 0; |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* Set rankPointChart |
151
|
|
|
* |
152
|
|
|
* @param integer $rankPointChart |
153
|
|
|
* @return $this |
154
|
|
|
*/ |
155
|
|
|
public function setRankPointChart($rankPointChart) |
156
|
|
|
{ |
157
|
|
|
$this->rankPointChart = $rankPointChart; |
158
|
|
|
return $this; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* Get rankPointChart |
163
|
|
|
* |
164
|
|
|
* @return integer |
165
|
|
|
*/ |
166
|
|
|
public function getRankPointChart() |
167
|
|
|
{ |
168
|
|
|
return $this->rankPointChart; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* Set rankMedal |
174
|
|
|
* |
175
|
|
|
* @param integer $rankMedal |
176
|
|
|
* @return $this |
177
|
|
|
*/ |
178
|
|
|
public function setRankMedal($rankMedal) |
179
|
|
|
{ |
180
|
|
|
$this->rankMedal = $rankMedal; |
181
|
|
|
return $this; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* Get rankMedal |
186
|
|
|
* |
187
|
|
|
* @return integer |
188
|
|
|
*/ |
189
|
|
|
public function getRankMedal() |
190
|
|
|
{ |
191
|
|
|
return $this->rankMedal; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* Set chartRank0 |
196
|
|
|
* |
197
|
|
|
* @param integer $chartRank0 |
198
|
|
|
* @return $this |
199
|
|
|
*/ |
200
|
|
|
public function setChartRank0($chartRank0) |
201
|
|
|
{ |
202
|
|
|
$this->chartRank0 = $chartRank0; |
203
|
|
|
return $this; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* Get chartRank0 |
208
|
|
|
* |
209
|
|
|
* @return integer |
210
|
|
|
*/ |
211
|
|
|
public function getChartRank0() |
212
|
|
|
{ |
213
|
|
|
return $this->chartRank0; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* Set chartRank1 |
218
|
|
|
* |
219
|
|
|
* @param integer $chartRank1 |
220
|
|
|
* @return $this |
221
|
|
|
*/ |
222
|
|
|
public function setChartRank1($chartRank1) |
223
|
|
|
{ |
224
|
|
|
$this->chartRank1 = $chartRank1; |
225
|
|
|
return $this; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* Get chartRank1 |
230
|
|
|
* |
231
|
|
|
* @return integer |
232
|
|
|
*/ |
233
|
|
|
public function getChartRank1() |
234
|
|
|
{ |
235
|
|
|
return $this->chartRank1; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* Set chartRank2 |
240
|
|
|
* |
241
|
|
|
* @param integer $chartRank2 |
242
|
|
|
* @return $this |
243
|
|
|
*/ |
244
|
|
|
public function setChartRank2($chartRank2) |
245
|
|
|
{ |
246
|
|
|
$this->chartRank2 = $chartRank2; |
247
|
|
|
return $this; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* Get chartRank2 |
252
|
|
|
* |
253
|
|
|
* @return integer |
254
|
|
|
*/ |
255
|
|
|
public function getChartRank2() |
256
|
|
|
{ |
257
|
|
|
return $this->chartRank2; |
258
|
|
|
} |
259
|
|
|
|
260
|
|
|
/** |
261
|
|
|
* Set chartRank3 |
262
|
|
|
* |
263
|
|
|
* @param integer $chartRank3 |
264
|
|
|
* @return $this |
265
|
|
|
*/ |
266
|
|
|
public function setChartRank3($chartRank3) |
267
|
|
|
{ |
268
|
|
|
$this->chartRank3 = $chartRank3; |
269
|
|
|
return $this; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* Get chartRank3 |
274
|
|
|
* |
275
|
|
|
* @return integer |
276
|
|
|
*/ |
277
|
|
|
public function getChartRank3() |
278
|
|
|
{ |
279
|
|
|
return $this->chartRank3; |
280
|
|
|
} |
281
|
|
|
|
282
|
|
|
/** |
283
|
|
|
* Set chartRank4 |
284
|
|
|
* |
285
|
|
|
* @param integer $chartRank4 |
286
|
|
|
* @return $this |
287
|
|
|
*/ |
288
|
|
|
public function setChartRank4($chartRank4) |
289
|
|
|
{ |
290
|
|
|
$this->chartRank4 = $chartRank4; |
291
|
|
|
return $this; |
292
|
|
|
} |
293
|
|
|
|
294
|
|
|
/** |
295
|
|
|
* Get chartRank4 |
296
|
|
|
* |
297
|
|
|
* @return integer |
298
|
|
|
*/ |
299
|
|
|
public function getChartRank4() |
300
|
|
|
{ |
301
|
|
|
return $this->chartRank4; |
302
|
|
|
} |
303
|
|
|
|
304
|
|
|
/** |
305
|
|
|
* Set chartRank5 |
306
|
|
|
* |
307
|
|
|
* @param integer $chartRank5 |
308
|
|
|
* @return $this |
309
|
|
|
*/ |
310
|
|
|
public function setChartRank5($chartRank5) |
311
|
|
|
{ |
312
|
|
|
$this->chartRank5 = $chartRank5; |
313
|
|
|
return $this; |
314
|
|
|
} |
315
|
|
|
|
316
|
|
|
/** |
317
|
|
|
* Get chartRank5 |
318
|
|
|
* |
319
|
|
|
* @return integer |
320
|
|
|
*/ |
321
|
|
|
public function getChartRank5() |
322
|
|
|
{ |
323
|
|
|
return $this->chartRank5; |
324
|
|
|
} |
325
|
|
|
|
326
|
|
|
/** |
327
|
|
|
* Set pointChart |
328
|
|
|
* |
329
|
|
|
* @param integer $pointChart |
330
|
|
|
* @return $this |
331
|
|
|
*/ |
332
|
|
|
public function setPointChart($pointChart) |
333
|
|
|
{ |
334
|
|
|
$this->pointChart = $pointChart; |
335
|
|
|
return $this; |
336
|
|
|
} |
337
|
|
|
|
338
|
|
|
/** |
339
|
|
|
* Get pointChart |
340
|
|
|
* |
341
|
|
|
* @return integer |
342
|
|
|
*/ |
343
|
|
|
public function getPointChart() |
344
|
|
|
{ |
345
|
|
|
return $this->pointChart; |
346
|
|
|
} |
347
|
|
|
|
348
|
|
|
/** |
349
|
|
|
* Set pointChartWithoutDlc |
350
|
|
|
* |
351
|
|
|
* @param integer $pointChartWithoutDlc |
352
|
|
|
* @return $this |
353
|
|
|
*/ |
354
|
|
|
public function setPointChartWithoutDlc($pointChartWithoutDlc) |
355
|
|
|
{ |
356
|
|
|
$this->pointChartWithoutDlc = $pointChartWithoutDlc; |
357
|
|
|
return $this; |
358
|
|
|
} |
359
|
|
|
|
360
|
|
|
/** |
361
|
|
|
* Get pointChartWithoutDlc |
362
|
|
|
* |
363
|
|
|
* @return integer |
364
|
|
|
*/ |
365
|
|
|
public function getPointChartWithoutDlc() |
366
|
|
|
{ |
367
|
|
|
return $this->pointChartWithoutDlc; |
368
|
|
|
} |
369
|
|
|
|
370
|
|
|
/** |
371
|
|
|
* Set nbChart |
372
|
|
|
* |
373
|
|
|
* @param integer $nbChart |
374
|
|
|
* @return $this |
375
|
|
|
*/ |
376
|
|
|
public function setNbChart($nbChart) |
377
|
|
|
{ |
378
|
|
|
$this->nbChart = $nbChart; |
379
|
|
|
return $this; |
380
|
|
|
} |
381
|
|
|
|
382
|
|
|
/** |
383
|
|
|
* Get nbChart |
384
|
|
|
* |
385
|
|
|
* @return integer |
386
|
|
|
*/ |
387
|
|
|
public function getNbChart() |
388
|
|
|
{ |
389
|
|
|
return $this->nbChart; |
390
|
|
|
} |
391
|
|
|
|
392
|
|
|
|
393
|
|
|
/** |
394
|
|
|
* Set nbChartProven |
395
|
|
|
* |
396
|
|
|
* @param integer $nbChartProven |
397
|
|
|
* @return $this |
398
|
|
|
*/ |
399
|
|
|
public function setNbChartProven($nbChartProven) |
400
|
|
|
{ |
401
|
|
|
$this->nbChartProven = $nbChartProven; |
402
|
|
|
return $this; |
403
|
|
|
} |
404
|
|
|
|
405
|
|
|
/** |
406
|
|
|
* Get nbChartProven |
407
|
|
|
* |
408
|
|
|
* @return integer |
409
|
|
|
*/ |
410
|
|
|
public function getNbChartProven() |
411
|
|
|
{ |
412
|
|
|
return $this->nbChartProven; |
413
|
|
|
} |
414
|
|
|
|
415
|
|
|
/** |
416
|
|
|
* Set nbChartWithoutDlc |
417
|
|
|
* |
418
|
|
|
* @param integer $nbChartWithoutDlc |
419
|
|
|
* @return $this |
420
|
|
|
*/ |
421
|
|
|
public function setNbChartWithoutDlc($nbChartWithoutDlc) |
422
|
|
|
{ |
423
|
|
|
$this->nbChartWithoutDlc = $nbChartWithoutDlc; |
424
|
|
|
return $this; |
425
|
|
|
} |
426
|
|
|
|
427
|
|
|
/** |
428
|
|
|
* Get nbChartWithoutDlc |
429
|
|
|
* |
430
|
|
|
* @return integer |
431
|
|
|
*/ |
432
|
|
|
public function getNbChartWithoutDlc() |
433
|
|
|
{ |
434
|
|
|
return $this->nbChartWithoutDlc; |
435
|
|
|
} |
436
|
|
|
|
437
|
|
|
/** |
438
|
|
|
* Set nbChartProvenWithoutDlc |
439
|
|
|
* |
440
|
|
|
* @param integer $nbChartProvenWithoutDlc |
441
|
|
|
* @return $this |
442
|
|
|
*/ |
443
|
|
|
public function setNbChartProvenWithoutDlc($nbChartProvenWithoutDlc) |
444
|
|
|
{ |
445
|
|
|
$this->nbChartProvenWithoutDlc = $nbChartProvenWithoutDlc; |
446
|
|
|
return $this; |
447
|
|
|
} |
448
|
|
|
|
449
|
|
|
/** |
450
|
|
|
* Get nbChartProvenWithoutDlc |
451
|
|
|
* |
452
|
|
|
* @return integer |
453
|
|
|
*/ |
454
|
|
|
public function getNbChartProvenWithoutDlc() |
455
|
|
|
{ |
456
|
|
|
return $this->nbChartProvenWithoutDlc; |
457
|
|
|
} |
458
|
|
|
|
459
|
|
|
/** |
460
|
|
|
* Set pointGame |
461
|
|
|
* |
462
|
|
|
* @param integer $pointGame |
463
|
|
|
* @return $this |
464
|
|
|
*/ |
465
|
|
|
public function setPointGame($pointGame) |
466
|
|
|
{ |
467
|
|
|
$this->pointGame = $pointGame; |
468
|
|
|
return $this; |
469
|
|
|
} |
470
|
|
|
|
471
|
|
|
/** |
472
|
|
|
* Get pointGame |
473
|
|
|
* |
474
|
|
|
* @return integer |
475
|
|
|
*/ |
476
|
|
|
public function getPointGame() |
477
|
|
|
{ |
478
|
|
|
return $this->pointGame; |
479
|
|
|
} |
480
|
|
|
|
481
|
|
|
/** |
482
|
|
|
* Set game |
483
|
|
|
* |
484
|
|
|
* @param Game $game |
485
|
|
|
* @return $this |
486
|
|
|
*/ |
487
|
|
|
public function setGame(Game $game = null) |
488
|
|
|
{ |
489
|
|
|
$this->game = $game; |
490
|
|
|
|
491
|
|
|
return $this; |
492
|
|
|
} |
493
|
|
|
|
494
|
|
|
/** |
495
|
|
|
* Get game |
496
|
|
|
* |
497
|
|
|
* @return Game |
498
|
|
|
*/ |
499
|
|
|
public function getGame() |
500
|
|
|
{ |
501
|
|
|
return $this->game; |
502
|
|
|
} |
503
|
|
|
|
504
|
|
|
|
505
|
|
|
/** |
506
|
|
|
* Set player |
507
|
|
|
* |
508
|
|
|
* @param Player $player |
509
|
|
|
* @return $this |
510
|
|
|
*/ |
511
|
|
|
public function setPlayer(Player $player = null) |
512
|
|
|
{ |
513
|
|
|
$this->player = $player; |
514
|
|
|
|
515
|
|
|
return $this; |
516
|
|
|
} |
517
|
|
|
|
518
|
|
|
/** |
519
|
|
|
* Get player |
520
|
|
|
* |
521
|
|
|
* @return Player |
522
|
|
|
*/ |
523
|
|
|
public function getPlayer() |
524
|
|
|
{ |
525
|
|
|
return $this->player; |
526
|
|
|
} |
527
|
|
|
|
528
|
|
|
/** |
529
|
|
|
* Set nbEqual |
530
|
|
|
* |
531
|
|
|
* @param integer $nbEqual |
532
|
|
|
* @return $this |
533
|
|
|
*/ |
534
|
|
|
public function setNbEqual($nbEqual) |
535
|
|
|
{ |
536
|
|
|
$this->nbEqual = $nbEqual; |
537
|
|
|
return $this; |
538
|
|
|
} |
539
|
|
|
|
540
|
|
|
/** |
541
|
|
|
* Get nbEqual |
542
|
|
|
* |
543
|
|
|
* @return integer |
544
|
|
|
*/ |
545
|
|
|
public function getNbEqual() |
546
|
|
|
{ |
547
|
|
|
return $this->nbEqual; |
548
|
|
|
} |
549
|
|
|
} |
550
|
|
|
|