|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace VideoGamesRecords\CoreBundle\Traits\Entity; |
|
4
|
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
6
|
|
|
|
|
7
|
|
|
trait RankCupTrait |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* @ORM\Column(name="rankCup", type="integer", nullable=false, options={"default" : 0}) |
|
11
|
|
|
*/ |
|
12
|
|
|
private int $rankCup = 0; |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* @ORM\Column(name="gameRank0", type="integer", nullable=false, options={"default" : 0}) |
|
16
|
|
|
*/ |
|
17
|
|
|
private int $gameRank0 = 0; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* @ORM\Column(name="gameRank1", type="integer", nullable=false, options={"default" : 0}) |
|
21
|
|
|
*/ |
|
22
|
|
|
private int $gameRank1 = 0; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @ORM\Column(name="gameRank2", type="integer", nullable=false, options={"default" : 0}) |
|
26
|
|
|
*/ |
|
27
|
|
|
private int $gameRank2 = 0; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @ORM\Column(name="gameRank3", type="integer", nullable=false, options={"default" : 0}) |
|
31
|
|
|
*/ |
|
32
|
|
|
private int $gameRank3 = 0; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @param int $rankCup |
|
36
|
|
|
* @return $this |
|
37
|
|
|
*/ |
|
38
|
|
|
public function setRankCup(int $rankCup): static |
|
39
|
|
|
{ |
|
40
|
|
|
$this->rankCup = $rankCup; |
|
41
|
|
|
return $this; |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* Get rankCup |
|
46
|
|
|
* @return int |
|
47
|
|
|
*/ |
|
48
|
|
|
public function getRankCup(): int |
|
49
|
|
|
{ |
|
50
|
|
|
return $this->rankCup; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @param int $gameRank0 |
|
55
|
|
|
* @return $this |
|
56
|
|
|
*/ |
|
57
|
|
|
public function setGameRank0(int $gameRank0): static |
|
58
|
|
|
{ |
|
59
|
|
|
$this->gameRank0 = $gameRank0; |
|
60
|
|
|
return $this; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Get gameRank0 |
|
65
|
|
|
* @return integer |
|
66
|
|
|
*/ |
|
67
|
|
|
public function getGameRank0(): int |
|
68
|
|
|
{ |
|
69
|
|
|
return $this->gameRank0; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* @param int $gameRank1 |
|
74
|
|
|
* @return $this |
|
75
|
|
|
*/ |
|
76
|
|
|
public function setGameRank1(int $gameRank1): static |
|
77
|
|
|
{ |
|
78
|
|
|
$this->gameRank1 = $gameRank1; |
|
79
|
|
|
return $this; |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* Get gameRank1 |
|
84
|
|
|
* @return integer |
|
85
|
|
|
*/ |
|
86
|
|
|
public function getGameRank1(): int |
|
87
|
|
|
{ |
|
88
|
|
|
return $this->gameRank1; |
|
89
|
|
|
} |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* @param int $gameRank2 |
|
93
|
|
|
* @return $this |
|
94
|
|
|
*/ |
|
95
|
|
|
public function setGameRank2(int $gameRank2): static |
|
96
|
|
|
{ |
|
97
|
|
|
$this->gameRank2 = $gameRank2; |
|
98
|
|
|
return $this; |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* Get gameRank2 |
|
103
|
|
|
* @return integer |
|
104
|
|
|
*/ |
|
105
|
|
|
public function getGameRank2(): int |
|
106
|
|
|
{ |
|
107
|
|
|
return $this->gameRank2; |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
/** |
|
111
|
|
|
* @param int $gameRank3 |
|
112
|
|
|
* @return $this |
|
113
|
|
|
*/ |
|
114
|
|
|
public function setGameRank3(int $gameRank3): static |
|
115
|
|
|
{ |
|
116
|
|
|
$this->gameRank3 = $gameRank3; |
|
117
|
|
|
return $this; |
|
118
|
|
|
} |
|
119
|
|
|
|
|
120
|
|
|
/** |
|
121
|
|
|
* Get gameRank3 |
|
122
|
|
|
* @return integer |
|
123
|
|
|
*/ |
|
124
|
|
|
public function getGameRank3(): int |
|
125
|
|
|
{ |
|
126
|
|
|
return $this->gameRank3; |
|
127
|
|
|
} |
|
128
|
|
|
} |
|
129
|
|
|
|
|
130
|
|
|
|