Passed
Push — develop ( 1358ff...4e8999 )
by BENARD
12:33
created

TeamSerie::setChartRank1()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Entity;
4
5
use VideoGamesRecords\CoreBundle\Traits\Entity\NbEqualTrait;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * TeamGame
10
 *
11
 * @ORM\Table(name="vgr_team_serie")
12
 * @ORM\Entity(repositoryClass="VideoGamesRecords\CoreBundle\Repository\TeamSerieRepository")
13
 */
14
class TeamSerie
15
{
16
    use NbEqualTrait;
17
18
    /**
19
     * @ORM\Column(name="pointGame", type="integer", nullable=false)
20
     */
21
    private int $pointGame = 0;
22
23
    /**
24
     * @ORM\Column(name="pointChart", type="integer", nullable=false)
25
     */
26
    private int $pointChart = 0;
27
28
    /**
29
     * @ORM\Column(name="rankPointChart", type="integer", nullable=false)
30
     */
31
    private int $rankPointChart;
32
33
    /**
34
     * @ORM\Column(name="rankMedal", type="integer", nullable=false)
35
     */
36
    private int $rankMedal;
37
38
    /**
39
     * @ORM\Column(name="chartRank0", type="integer", nullable=false)
40
     */
41
    private int $chartRank0;
42
43
    /**
44
     * @ORM\Column(name="chartRank1", type="integer", nullable=false)
45
     */
46
    private int $chartRank1;
47
48
    /**
49
     * @ORM\Column(name="chartRank2", type="integer", nullable=false)
50
     */
51
    private int $chartRank2;
52
53
    /**
54
     * @ORM\Column(name="chartRank3", type="integer", nullable=false)
55
     */
56
    private int $chartRank3;
57
58
    /**
59
     * @ORM\Id
60
     * @ORM\ManyToOne(targetEntity="VideoGamesRecords\CoreBundle\Entity\Team", inversedBy="teamGame")
61
     * @ORM\JoinColumns({
62
     *   @ORM\JoinColumn(name="idTeam", referencedColumnName="id", nullable=false, onDelete="CASCADE")
63
     * })
64
     */
65
    private Team $team;
66
67
    /**
68
     * @ORM\Id
69
     * @ORM\ManyToOne(targetEntity="VideoGamesRecords\CoreBundle\Entity\Serie", fetch="EAGER")
70
     * @ORM\JoinColumns({
71
     *   @ORM\JoinColumn(name="idSerie", referencedColumnName="id", nullable=false, onDelete="CASCADE")
72
     * })
73
     */
74
    private Serie $serie;
75
76
    /**
77
     * Set pointGame
78
     * @param integer $pointGame
79
     * @return $this
80
     */
81
    public function setPointGame(int $pointGame): TeamSerie
82
    {
83
        $this->pointGame = $pointGame;
84
        return $this;
85
    }
86
87
    /**
88
     * Get pointGame
89
     *
90
     * @return integer
91
     */
92
    public function getPointGame(): int
93
    {
94
        return $this->pointGame;
95
    }
96
97
    /**
98
     * Set pointChart
99
     * @param int $pointChart
100
     * @return $this
101
     */
102
    public function setPointChart(int $pointChart): TeamSerie
103
    {
104
        $this->pointChart = $pointChart;
105
        return $this;
106
    }
107
108
    /**
109
     * Get pointChart
110
     *
111
     * @return integer
112
     */
113
    public function getPointChart(): int
114
    {
115
        return $this->pointChart;
116
    }
117
118
    /**
119
     * Set rankPointChart
120
     * @param integer $rankPointChart
121
     * @return $this
122
     */
123
    public function setRankPointChart(int $rankPointChart): TeamSerie
124
    {
125
        $this->rankPointChart = $rankPointChart;
126
        return $this;
127
    }
128
129
    /**
130
     * Get rankPointChart
131
     *
132
     * @return integer
133
     */
134
    public function getRankPointChart(): int
135
    {
136
        return $this->rankPointChart;
137
    }
138
139
    /**
140
     * Set rankMedal
141
     * @param integer $rankMedal
142
     * @return $this
143
     */
144
    public function setRankMedal(int $rankMedal): TeamSerie
145
    {
146
        $this->rankMedal = $rankMedal;
147
        return $this;
148
    }
149
150
    /**
151
     * Get rankMedal
152
     *
153
     * @return integer
154
     */
155
    public function getRankMedal(): int
156
    {
157
        return $this->rankMedal;
158
    }
159
160
    /**
161
     * Set chartRank0
162
     * @param integer $chartRank0
163
     * @return $this
164
     */
165
    public function setChartRank0(int $chartRank0): TeamSerie
166
    {
167
        $this->chartRank0 = $chartRank0;
168
        return $this;
169
    }
170
171
    /**
172
     * Get chartRank0
173
     *
174
     * @return integer
175
     */
176
    public function getChartRank0(): int
177
    {
178
        return $this->chartRank0;
179
    }
180
181
    /**
182
     * Set chartRank1
183
     * @param integer $chartRank1
184
     * @return $this
185
     */
186
    public function setChartRank1(int $chartRank1): TeamSerie
187
    {
188
        $this->chartRank1 = $chartRank1;
189
        return $this;
190
    }
191
192
    /**
193
     * Get chartRank1
194
     *
195
     * @return integer
196
     */
197
    public function getChartRank1(): int
198
    {
199
        return $this->chartRank1;
200
    }
201
202
    /**
203
     * Set chartRank2
204
     * @param integer $chartRank2
205
     * @return $this
206
     */
207
    public function setChartRank2(int $chartRank2): TeamSerie
208
    {
209
        $this->chartRank2 = $chartRank2;
210
        return $this;
211
    }
212
213
    /**
214
     * Get chartRank2
215
     *
216
     * @return integer
217
     */
218
    public function getChartRank2(): int
219
    {
220
        return $this->chartRank2;
221
    }
222
223
    /**
224
     * Set chartRank3
225
     * @param integer $chartRank3
226
     * @return $this
227
     */
228
    public function setChartRank3(int $chartRank3): TeamSerie
229
    {
230
        $this->chartRank3 = $chartRank3;
231
        return $this;
232
    }
233
234
    /**
235
     * Get chartRank3
236
     *
237
     * @return integer
238
     */
239
    public function getChartRank3(): int
240
    {
241
        return $this->chartRank3;
242
    }
243
244
245
    /**
246
     * Set serie
247
     * @param Serie $serie
248
     * @return $this
249
     */
250
    public function setSerie(Serie $serie): TeamSerie
251
    {
252
        $this->serie = $serie;
253
254
        return $this;
255
    }
256
257
    /**
258
     * Get serie
259
     *
260
     * @return Serie
261
     */
262
    public function getSerie(): Serie
263
    {
264
        return $this->serie;
265
    }
266
267
268
    /**
269
     * Set team
270
     * @param Team $team
271
     * @return $this
272
     */
273
    public function setTeam(Team $team): TeamSerie
274
    {
275
        $this->team = $team;
276
277
        return $this;
278
    }
279
280
    /**
281
     * Get team
282
     *
283
     * @return Team
284
     */
285
    public function getTeam(): Team
286
    {
287
        return $this->team;
288
    }
289
}
290