|
1
|
|
|
<?php |
|
2
|
|
|
namespace Torakel\DatabaseBundle\Entity; |
|
3
|
|
|
|
|
4
|
|
|
use Doctrine\Common\Collections\ArrayCollection; |
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
|
|
|
|
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* @ORM\Entity |
|
9
|
|
|
* @ORM\HasLifecycleCallbacks |
|
10
|
|
|
* @ORM\Entity(repositoryClass="Torakel\DatabaseBundle\Repository\GameRepository") |
|
11
|
|
|
* @ORM\Table(name="game") |
|
12
|
|
|
*/ |
|
13
|
|
|
class Game |
|
14
|
|
|
{ |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* @var integer |
|
18
|
|
|
* @ORM\Column(type="integer") |
|
19
|
|
|
* @ORM\Id |
|
20
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
|
21
|
|
|
*/ |
|
22
|
|
|
private $id; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var string |
|
26
|
|
|
* @ORM\Column(type="string") |
|
27
|
|
|
*/ |
|
28
|
|
|
protected $slug; |
|
29
|
|
|
|
|
30
|
|
|
/** |
|
31
|
|
|
* @var \DateTime |
|
32
|
|
|
* @ORM\Column(type="datetime", name="start_time", nullable=true) |
|
33
|
|
|
*/ |
|
34
|
|
|
protected $startTime; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @var \Torakel\DatabaseBundle\Entity\Matchday |
|
38
|
|
|
* @ORM\ManyToOne(targetEntity="\Torakel\DatabaseBundle\Entity\Matchday", inversedBy="games") |
|
39
|
|
|
* @ORM\JoinColumn(name="matchday_id", referencedColumnName="id") |
|
40
|
|
|
*/ |
|
41
|
|
|
protected $matchday; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @var \Torakel\DatabaseBundle\Entity\Ground |
|
45
|
|
|
* @ORM\ManyToOne(targetEntity="\Torakel\DatabaseBundle\Entity\Ground", inversedBy="games") |
|
46
|
|
|
* @ORM\JoinColumn(name="ground_id", referencedColumnName="id") |
|
47
|
|
|
*/ |
|
48
|
|
|
protected $ground; |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* @var \Torakel\DatabaseBundle\Entity\Coach |
|
52
|
|
|
* @ORM\ManyToOne(targetEntity="\Torakel\DatabaseBundle\Entity\Coach", inversedBy="homeGames") |
|
53
|
|
|
* @ORM\JoinColumn(name="coach_home_id", referencedColumnName="id") |
|
54
|
|
|
*/ |
|
55
|
|
|
protected $coachHome; |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* @var \Torakel\DatabaseBundle\Entity\Coach |
|
59
|
|
|
* @ORM\ManyToOne(targetEntity="\Torakel\DatabaseBundle\Entity\Coach", inversedBy="awayGames") |
|
60
|
|
|
* @ORM\JoinColumn(name="coach_away_id", referencedColumnName="id") |
|
61
|
|
|
*/ |
|
62
|
|
|
protected $coachAway; |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @var \Torakel\DatabaseBundle\Entity\Team |
|
66
|
|
|
* @ORM\ManyToOne(targetEntity="\Torakel\DatabaseBundle\Entity\Team", inversedBy="homeGames") |
|
67
|
|
|
* @ORM\JoinColumn(name="team_home_id", referencedColumnName="id") |
|
68
|
|
|
*/ |
|
69
|
|
|
protected $teamHome; |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* @var \Torakel\DatabaseBundle\Entity\Team |
|
73
|
|
|
* @ORM\ManyToOne(targetEntity="\Torakel\DatabaseBundle\Entity\Team", inversedBy="awayGames") |
|
74
|
|
|
* @ORM\JoinColumn(name="team_away_id", referencedColumnName="id") |
|
75
|
|
|
*/ |
|
76
|
|
|
protected $teamAway; |
|
77
|
|
|
|
|
78
|
|
|
/** |
|
79
|
|
|
* @var \Doctrine\Common\Collections\ArrayCollection; |
|
80
|
|
|
* @ORM\OneToMany(targetEntity="\Torakel\DatabaseBundle\Entity\GamePlayer", mappedBy="game") |
|
81
|
|
|
*/ |
|
82
|
|
|
protected $gamePlayers; |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* @var \Doctrine\Common\Collections\ArrayCollection; |
|
86
|
|
|
* @ORM\OneToMany(targetEntity="\Torakel\DatabaseBundle\Entity\GamePlayerStatistic", mappedBy="game") |
|
87
|
|
|
*/ |
|
88
|
|
|
protected $gamePlayerStatistics; |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @var \Doctrine\Common\Collections\ArrayCollection; |
|
92
|
|
|
* @ORM\OneToMany(targetEntity="\Torakel\DatabaseBundle\Entity\GameTeamStatistic", mappedBy="game") |
|
93
|
|
|
*/ |
|
94
|
|
|
protected $gameTeamStatistics; |
|
95
|
|
|
|
|
96
|
|
|
/** |
|
97
|
|
|
* @var \Doctrine\Common\Collections\ArrayCollection; |
|
98
|
|
|
* @ORM\OneToMany(targetEntity="\Torakel\DatabaseBundle\Entity\Card", mappedBy="game") |
|
99
|
|
|
*/ |
|
100
|
|
|
protected $cards; |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @var \Doctrine\Common\Collections\ArrayCollection; |
|
104
|
|
|
* @ORM\OneToMany(targetEntity="\Torakel\DatabaseBundle\Entity\Goal", mappedBy="game") |
|
105
|
|
|
*/ |
|
106
|
|
|
protected $goals; |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* @var \Doctrine\Common\Collections\ArrayCollection; |
|
110
|
|
|
* @ORM\OneToMany(targetEntity="\Torakel\DatabaseBundle\Entity\Substitution", mappedBy="game") |
|
111
|
|
|
*/ |
|
112
|
|
|
protected $substitutions; |
|
113
|
|
|
|
|
114
|
|
|
/** |
|
115
|
|
|
* @var \Torakel\DatabaseBundle\Entity\Referee |
|
116
|
|
|
* @ORM\ManyToOne(targetEntity="\Torakel\DatabaseBundle\Entity\Referee", inversedBy="games") |
|
117
|
|
|
* @ORM\JoinColumn(name="referee_id", referencedColumnName="id") |
|
118
|
|
|
*/ |
|
119
|
|
|
protected $referee; |
|
120
|
|
|
|
|
121
|
|
|
/** |
|
122
|
|
|
* @var integer |
|
123
|
|
|
* @ORM\Column(type="integer", name="score_home_halftime", nullable=true) |
|
124
|
|
|
*/ |
|
125
|
|
|
protected $scoreHomeHalftime; |
|
126
|
|
|
|
|
127
|
|
|
/** |
|
128
|
|
|
* @var integer |
|
129
|
|
|
* @ORM\Column(type="integer", name="score_home_fulltime", nullable=true) |
|
130
|
|
|
*/ |
|
131
|
|
|
protected $scoreHomeFulltime; |
|
132
|
|
|
|
|
133
|
|
|
/** |
|
134
|
|
|
* @var integer |
|
135
|
|
|
* @ORM\Column(type="integer", name="score_home_extratime", nullable=true) |
|
136
|
|
|
*/ |
|
137
|
|
|
protected $scoreHomeExtratime; |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* @var integer |
|
141
|
|
|
* @ORM\Column(type="integer", name="score_home_penalties", nullable=true) |
|
142
|
|
|
*/ |
|
143
|
|
|
protected $scoreHomePenalties; |
|
144
|
|
|
|
|
145
|
|
|
/** |
|
146
|
|
|
* @var integer |
|
147
|
|
|
* @ORM\Column(type="integer", name="score_away_halftime", nullable=true) |
|
148
|
|
|
*/ |
|
149
|
|
|
protected $scoreAwayHalftime; |
|
150
|
|
|
|
|
151
|
|
|
/** |
|
152
|
|
|
* @var integer |
|
153
|
|
|
* @ORM\Column(type="integer", name="score_away_fulltime", nullable=true) |
|
154
|
|
|
*/ |
|
155
|
|
|
protected $scoreAwayFulltime; |
|
156
|
|
|
|
|
157
|
|
|
/** |
|
158
|
|
|
* @var integer |
|
159
|
|
|
* @ORM\Column(type="integer", name="score_away_extratime", nullable=true) |
|
160
|
|
|
*/ |
|
161
|
|
|
protected $scoreAwayExtratime; |
|
162
|
|
|
|
|
163
|
|
|
/** |
|
164
|
|
|
* @var integer |
|
165
|
|
|
* @ORM\Column(type="integer", name="score_away_penalties", nullable=true) |
|
166
|
|
|
*/ |
|
167
|
|
|
protected $scoreAwayPenalties; |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* @var integer |
|
171
|
|
|
* @ORM\Column(type="integer", nullable=true) |
|
172
|
|
|
*/ |
|
173
|
|
|
protected $audience; |
|
174
|
|
|
|
|
175
|
|
|
/** |
|
176
|
|
|
* @var bool |
|
177
|
|
|
* @ORM\Column(type="boolean", name="result_calculated") |
|
178
|
|
|
*/ |
|
179
|
|
|
protected $resultCalculated; |
|
180
|
|
|
|
|
181
|
|
|
/** |
|
182
|
|
|
* @var \DateTime |
|
183
|
|
|
* @ORM\Column(type="datetime", name="created_at") |
|
184
|
|
|
*/ |
|
185
|
|
|
protected $createdAt; |
|
186
|
|
|
|
|
187
|
|
|
/** |
|
188
|
|
|
* @var \DateTime |
|
189
|
|
|
* @ORM\Column(type="datetime", name="updated_at", nullable=true) |
|
190
|
|
|
*/ |
|
191
|
|
|
protected $updatedAt; |
|
192
|
|
|
|
|
193
|
|
|
/** |
|
194
|
|
|
* Constructor |
|
195
|
|
|
*/ |
|
196
|
13 |
|
public function __construct() |
|
197
|
|
|
{ |
|
198
|
13 |
|
$this->resultCalculated = false; |
|
199
|
13 |
|
$this->cards = new ArrayCollection(); |
|
200
|
13 |
|
$this->gamePlayers = new ArrayCollection(); |
|
201
|
13 |
|
$this->gamePlayerStatistics = new ArrayCollection(); |
|
202
|
13 |
|
$this->gameTeamStatistics = new ArrayCollection(); |
|
203
|
13 |
|
$this->goals = new ArrayCollection(); |
|
204
|
13 |
|
$this->substitutions = new ArrayCollection(); |
|
205
|
13 |
|
} |
|
206
|
|
|
|
|
207
|
|
|
/** |
|
208
|
|
|
* Get id |
|
209
|
|
|
* |
|
210
|
|
|
* @return integer |
|
211
|
|
|
*/ |
|
212
|
1 |
|
public function getId() |
|
213
|
|
|
{ |
|
214
|
1 |
|
return $this->id; |
|
215
|
|
|
} |
|
216
|
|
|
|
|
217
|
|
|
/** |
|
218
|
|
|
* Set scoreHomeHalftime |
|
219
|
|
|
* |
|
220
|
|
|
* @param integer $scoreHomeHalftime |
|
221
|
|
|
* |
|
222
|
|
|
* @return Game |
|
223
|
|
|
*/ |
|
224
|
1 |
|
public function setScoreHomeHalftime($scoreHomeHalftime) |
|
225
|
|
|
{ |
|
226
|
1 |
|
$this->scoreHomeHalftime = $scoreHomeHalftime; |
|
227
|
|
|
|
|
228
|
1 |
|
return $this; |
|
229
|
|
|
} |
|
230
|
|
|
|
|
231
|
|
|
/** |
|
232
|
|
|
* Get scoreHomeHalftime |
|
233
|
|
|
* |
|
234
|
|
|
* @return integer |
|
235
|
|
|
*/ |
|
236
|
1 |
|
public function getScoreHomeHalftime() |
|
237
|
|
|
{ |
|
238
|
1 |
|
return $this->scoreHomeHalftime; |
|
239
|
|
|
} |
|
240
|
|
|
|
|
241
|
|
|
/** |
|
242
|
|
|
* Set scoreHomeFulltime |
|
243
|
|
|
* |
|
244
|
|
|
* @param integer $scoreHomeFulltime |
|
245
|
|
|
* |
|
246
|
|
|
* @return Game |
|
247
|
|
|
*/ |
|
248
|
1 |
|
public function setScoreHomeFulltime($scoreHomeFulltime) |
|
249
|
|
|
{ |
|
250
|
1 |
|
$this->scoreHomeFulltime = $scoreHomeFulltime; |
|
251
|
|
|
|
|
252
|
1 |
|
return $this; |
|
253
|
|
|
} |
|
254
|
|
|
|
|
255
|
|
|
/** |
|
256
|
|
|
* Get scoreHomeFulltime |
|
257
|
|
|
* |
|
258
|
|
|
* @return integer |
|
259
|
|
|
*/ |
|
260
|
1 |
|
public function getScoreHomeFulltime() |
|
261
|
|
|
{ |
|
262
|
1 |
|
return $this->scoreHomeFulltime; |
|
263
|
|
|
} |
|
264
|
|
|
|
|
265
|
|
|
/** |
|
266
|
|
|
* Set scoreHomeExtratime |
|
267
|
|
|
* |
|
268
|
|
|
* @param integer $scoreHomeExtratime |
|
269
|
|
|
* |
|
270
|
|
|
* @return Game |
|
271
|
|
|
*/ |
|
272
|
1 |
|
public function setScoreHomeExtratime($scoreHomeExtratime) |
|
273
|
|
|
{ |
|
274
|
1 |
|
$this->scoreHomeExtratime = $scoreHomeExtratime; |
|
275
|
|
|
|
|
276
|
1 |
|
return $this; |
|
277
|
|
|
} |
|
278
|
|
|
|
|
279
|
|
|
/** |
|
280
|
|
|
* Get scoreHomeExtratime |
|
281
|
|
|
* |
|
282
|
|
|
* @return integer |
|
283
|
|
|
*/ |
|
284
|
1 |
|
public function getScoreHomeExtratime() |
|
285
|
|
|
{ |
|
286
|
1 |
|
return $this->scoreHomeExtratime; |
|
287
|
|
|
} |
|
288
|
|
|
|
|
289
|
|
|
/** |
|
290
|
|
|
* Set scoreHomePenalties |
|
291
|
|
|
* |
|
292
|
|
|
* @param integer $scoreHomePenalties |
|
293
|
|
|
* |
|
294
|
|
|
* @return Game |
|
295
|
|
|
*/ |
|
296
|
1 |
|
public function setScoreHomePenalties($scoreHomePenalties) |
|
297
|
|
|
{ |
|
298
|
1 |
|
$this->scoreHomePenalties = $scoreHomePenalties; |
|
299
|
|
|
|
|
300
|
1 |
|
return $this; |
|
301
|
|
|
} |
|
302
|
|
|
|
|
303
|
|
|
/** |
|
304
|
|
|
* Get scoreHomePenalties |
|
305
|
|
|
* |
|
306
|
|
|
* @return integer |
|
307
|
|
|
*/ |
|
308
|
1 |
|
public function getScoreHomePenalties() |
|
309
|
|
|
{ |
|
310
|
1 |
|
return $this->scoreHomePenalties; |
|
311
|
|
|
} |
|
312
|
|
|
|
|
313
|
|
|
/** |
|
314
|
|
|
* Set scoreAwayHalftime |
|
315
|
|
|
* |
|
316
|
|
|
* @param integer $scoreAwayHalftime |
|
317
|
|
|
* |
|
318
|
|
|
* @return Game |
|
319
|
|
|
*/ |
|
320
|
1 |
|
public function setScoreAwayHalftime($scoreAwayHalftime) |
|
321
|
|
|
{ |
|
322
|
1 |
|
$this->scoreAwayHalftime = $scoreAwayHalftime; |
|
323
|
|
|
|
|
324
|
1 |
|
return $this; |
|
325
|
|
|
} |
|
326
|
|
|
|
|
327
|
|
|
/** |
|
328
|
|
|
* Get scoreAwayHalftime |
|
329
|
|
|
* |
|
330
|
|
|
* @return integer |
|
331
|
|
|
*/ |
|
332
|
1 |
|
public function getScoreAwayHalftime() |
|
333
|
|
|
{ |
|
334
|
1 |
|
return $this->scoreAwayHalftime; |
|
335
|
|
|
} |
|
336
|
|
|
|
|
337
|
|
|
/** |
|
338
|
|
|
* Set scoreAwayFulltime |
|
339
|
|
|
* |
|
340
|
|
|
* @param integer $scoreAwayFulltime |
|
341
|
|
|
* |
|
342
|
|
|
* @return Game |
|
343
|
|
|
*/ |
|
344
|
1 |
|
public function setScoreAwayFulltime($scoreAwayFulltime) |
|
345
|
|
|
{ |
|
346
|
1 |
|
$this->scoreAwayFulltime = $scoreAwayFulltime; |
|
347
|
|
|
|
|
348
|
1 |
|
return $this; |
|
349
|
|
|
} |
|
350
|
|
|
|
|
351
|
|
|
/** |
|
352
|
|
|
* Get scoreAwayFulltime |
|
353
|
|
|
* |
|
354
|
|
|
* @return integer |
|
355
|
|
|
*/ |
|
356
|
1 |
|
public function getScoreAwayFulltime() |
|
357
|
|
|
{ |
|
358
|
1 |
|
return $this->scoreAwayFulltime; |
|
359
|
|
|
} |
|
360
|
|
|
|
|
361
|
|
|
/** |
|
362
|
|
|
* Set scoreAwayExtratime |
|
363
|
|
|
* |
|
364
|
|
|
* @param integer $scoreAwayExtratime |
|
365
|
|
|
* |
|
366
|
|
|
* @return Game |
|
367
|
|
|
*/ |
|
368
|
1 |
|
public function setScoreAwayExtratime($scoreAwayExtratime) |
|
369
|
|
|
{ |
|
370
|
1 |
|
$this->scoreAwayExtratime = $scoreAwayExtratime; |
|
371
|
|
|
|
|
372
|
1 |
|
return $this; |
|
373
|
|
|
} |
|
374
|
|
|
|
|
375
|
|
|
/** |
|
376
|
|
|
* Get scoreAwayExtratime |
|
377
|
|
|
* |
|
378
|
|
|
* @return integer |
|
379
|
|
|
*/ |
|
380
|
1 |
|
public function getScoreAwayExtratime() |
|
381
|
|
|
{ |
|
382
|
1 |
|
return $this->scoreAwayExtratime; |
|
383
|
|
|
} |
|
384
|
|
|
|
|
385
|
|
|
/** |
|
386
|
|
|
* Set scoreAwayPenalties |
|
387
|
|
|
* |
|
388
|
|
|
* @param integer $scoreAwayPenalties |
|
389
|
|
|
* |
|
390
|
|
|
* @return Game |
|
391
|
|
|
*/ |
|
392
|
1 |
|
public function setScoreAwayPenalties($scoreAwayPenalties) |
|
393
|
|
|
{ |
|
394
|
1 |
|
$this->scoreAwayPenalties = $scoreAwayPenalties; |
|
395
|
|
|
|
|
396
|
1 |
|
return $this; |
|
397
|
|
|
} |
|
398
|
|
|
|
|
399
|
|
|
/** |
|
400
|
|
|
* Get scoreAwayPenalties |
|
401
|
|
|
* |
|
402
|
|
|
* @return integer |
|
403
|
|
|
*/ |
|
404
|
1 |
|
public function getScoreAwayPenalties() |
|
405
|
|
|
{ |
|
406
|
1 |
|
return $this->scoreAwayPenalties; |
|
407
|
|
|
} |
|
408
|
|
|
|
|
409
|
|
|
/** |
|
410
|
|
|
* Set createdAt |
|
411
|
|
|
* |
|
412
|
|
|
* @param \DateTime $createdAt |
|
413
|
|
|
* |
|
414
|
|
|
* @return Game |
|
415
|
|
|
*/ |
|
416
|
1 |
|
public function setCreatedAt($createdAt) |
|
417
|
|
|
{ |
|
418
|
1 |
|
$this->createdAt = $createdAt; |
|
419
|
|
|
|
|
420
|
1 |
|
return $this; |
|
421
|
|
|
} |
|
422
|
|
|
|
|
423
|
|
|
/** |
|
424
|
|
|
* Get createdAt |
|
425
|
|
|
* |
|
426
|
|
|
* @return \DateTime |
|
427
|
|
|
*/ |
|
428
|
1 |
|
public function getCreatedAt() |
|
429
|
|
|
{ |
|
430
|
1 |
|
return $this->createdAt; |
|
431
|
|
|
} |
|
432
|
|
|
|
|
433
|
|
|
/** |
|
434
|
|
|
* Set updatedAt |
|
435
|
|
|
* |
|
436
|
|
|
* @param \DateTime $updatedAt |
|
437
|
|
|
* |
|
438
|
|
|
* @return Game |
|
439
|
|
|
*/ |
|
440
|
1 |
|
public function setUpdatedAt($updatedAt) |
|
441
|
|
|
{ |
|
442
|
1 |
|
$this->updatedAt = $updatedAt; |
|
443
|
|
|
|
|
444
|
1 |
|
return $this; |
|
445
|
|
|
} |
|
446
|
|
|
|
|
447
|
|
|
/** |
|
448
|
|
|
* Get updatedAt |
|
449
|
|
|
* |
|
450
|
|
|
* @return \DateTime |
|
451
|
|
|
*/ |
|
452
|
1 |
|
public function getUpdatedAt() |
|
453
|
|
|
{ |
|
454
|
1 |
|
return $this->updatedAt; |
|
455
|
|
|
} |
|
456
|
|
|
|
|
457
|
|
|
/** |
|
458
|
|
|
* Set matchday |
|
459
|
|
|
* |
|
460
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Matchday $matchday |
|
461
|
|
|
* |
|
462
|
|
|
* @return Game |
|
463
|
|
|
*/ |
|
464
|
1 |
|
public function setMatchday(\Torakel\DatabaseBundle\Entity\Matchday $matchday = null) |
|
465
|
|
|
{ |
|
466
|
1 |
|
$this->matchday = $matchday; |
|
467
|
|
|
|
|
468
|
1 |
|
return $this; |
|
469
|
|
|
} |
|
470
|
|
|
|
|
471
|
|
|
/** |
|
472
|
|
|
* Get matchday |
|
473
|
|
|
* |
|
474
|
|
|
* @return \Torakel\DatabaseBundle\Entity\Matchday |
|
475
|
|
|
*/ |
|
476
|
1 |
|
public function getMatchday() |
|
477
|
|
|
{ |
|
478
|
1 |
|
return $this->matchday; |
|
479
|
|
|
} |
|
480
|
|
|
|
|
481
|
|
|
/** |
|
482
|
|
|
* Set ground |
|
483
|
|
|
* |
|
484
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Ground $ground |
|
485
|
|
|
* |
|
486
|
|
|
* @return Game |
|
487
|
|
|
*/ |
|
488
|
1 |
|
public function setGround(\Torakel\DatabaseBundle\Entity\Ground $ground = null) |
|
489
|
|
|
{ |
|
490
|
1 |
|
$this->ground = $ground; |
|
491
|
|
|
|
|
492
|
1 |
|
return $this; |
|
493
|
|
|
} |
|
494
|
|
|
|
|
495
|
|
|
/** |
|
496
|
|
|
* Get ground |
|
497
|
|
|
* |
|
498
|
|
|
* @return \Torakel\DatabaseBundle\Entity\Ground |
|
499
|
|
|
*/ |
|
500
|
1 |
|
public function getGround() |
|
501
|
|
|
{ |
|
502
|
1 |
|
return $this->ground; |
|
503
|
|
|
} |
|
504
|
|
|
|
|
505
|
|
|
/** |
|
506
|
|
|
* Set teamHome |
|
507
|
|
|
* |
|
508
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Team $teamHome |
|
509
|
|
|
* |
|
510
|
|
|
* @return Game |
|
511
|
|
|
*/ |
|
512
|
1 |
|
public function setTeamHome(\Torakel\DatabaseBundle\Entity\Team $teamHome = null) |
|
513
|
|
|
{ |
|
514
|
1 |
|
$this->teamHome = $teamHome; |
|
515
|
|
|
|
|
516
|
1 |
|
return $this; |
|
517
|
|
|
} |
|
518
|
|
|
|
|
519
|
|
|
/** |
|
520
|
|
|
* Get teamHome |
|
521
|
|
|
* |
|
522
|
|
|
* @return \Torakel\DatabaseBundle\Entity\Team |
|
523
|
|
|
*/ |
|
524
|
1 |
|
public function getTeamHome() |
|
525
|
|
|
{ |
|
526
|
1 |
|
return $this->teamHome; |
|
527
|
|
|
} |
|
528
|
|
|
|
|
529
|
|
|
/** |
|
530
|
|
|
* Set teamAway |
|
531
|
|
|
* |
|
532
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Team $teamAway |
|
533
|
|
|
* |
|
534
|
|
|
* @return Game |
|
535
|
|
|
*/ |
|
536
|
1 |
|
public function setTeamAway(\Torakel\DatabaseBundle\Entity\Team $teamAway = null) |
|
537
|
|
|
{ |
|
538
|
1 |
|
$this->teamAway = $teamAway; |
|
539
|
|
|
|
|
540
|
1 |
|
return $this; |
|
541
|
|
|
} |
|
542
|
|
|
|
|
543
|
|
|
/** |
|
544
|
|
|
* Get teamAway |
|
545
|
|
|
* |
|
546
|
|
|
* @return \Torakel\DatabaseBundle\Entity\Team |
|
547
|
|
|
*/ |
|
548
|
1 |
|
public function getTeamAway() |
|
549
|
|
|
{ |
|
550
|
1 |
|
return $this->teamAway; |
|
551
|
|
|
} |
|
552
|
|
|
|
|
553
|
|
|
/** |
|
554
|
|
|
* Set audience |
|
555
|
|
|
* |
|
556
|
|
|
* @param integer $audience |
|
557
|
|
|
* |
|
558
|
|
|
* @return Game |
|
559
|
|
|
*/ |
|
560
|
1 |
|
public function setAudience($audience) |
|
561
|
|
|
{ |
|
562
|
1 |
|
$this->audience = $audience; |
|
563
|
|
|
|
|
564
|
1 |
|
return $this; |
|
565
|
|
|
} |
|
566
|
|
|
|
|
567
|
|
|
/** |
|
568
|
|
|
* Get audience |
|
569
|
|
|
* |
|
570
|
|
|
* @return integer |
|
571
|
|
|
*/ |
|
572
|
1 |
|
public function getAudience() |
|
573
|
|
|
{ |
|
574
|
1 |
|
return $this->audience; |
|
575
|
|
|
} |
|
576
|
|
|
|
|
577
|
|
|
/** |
|
578
|
|
|
* Add gamePlayer |
|
579
|
|
|
* |
|
580
|
|
|
* @param \Torakel\DatabaseBundle\Entity\GamePlayer $gamePlayer |
|
581
|
|
|
* |
|
582
|
|
|
* @return Game |
|
583
|
|
|
*/ |
|
584
|
1 |
|
public function addGamePlayer(\Torakel\DatabaseBundle\Entity\GamePlayer $gamePlayer) |
|
585
|
|
|
{ |
|
586
|
1 |
|
$this->gamePlayers[] = $gamePlayer; |
|
587
|
|
|
|
|
588
|
1 |
|
return $this; |
|
589
|
|
|
} |
|
590
|
|
|
|
|
591
|
|
|
/** |
|
592
|
|
|
* Remove gamePlayer |
|
593
|
|
|
* |
|
594
|
|
|
* @param \Torakel\DatabaseBundle\Entity\GamePlayer $gamePlayer |
|
595
|
|
|
*/ |
|
596
|
1 |
|
public function removeGamePlayer(\Torakel\DatabaseBundle\Entity\GamePlayer $gamePlayer) |
|
597
|
|
|
{ |
|
598
|
1 |
|
$this->gamePlayers->removeElement($gamePlayer); |
|
599
|
1 |
|
} |
|
600
|
|
|
|
|
601
|
|
|
/** |
|
602
|
|
|
* Get gamePlayers |
|
603
|
|
|
* |
|
604
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
605
|
|
|
*/ |
|
606
|
1 |
|
public function getGamePlayers() |
|
607
|
|
|
{ |
|
608
|
1 |
|
return $this->gamePlayers; |
|
609
|
|
|
} |
|
610
|
|
|
|
|
611
|
|
|
/** |
|
612
|
|
|
* Add substitution |
|
613
|
|
|
* |
|
614
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Substitution $substitution |
|
615
|
|
|
* |
|
616
|
|
|
* @return Game |
|
617
|
|
|
*/ |
|
618
|
1 |
|
public function addSubstitution(\Torakel\DatabaseBundle\Entity\Substitution $substitution) |
|
619
|
|
|
{ |
|
620
|
1 |
|
$this->substitutions[] = $substitution; |
|
621
|
|
|
|
|
622
|
1 |
|
return $this; |
|
623
|
|
|
} |
|
624
|
|
|
|
|
625
|
|
|
/** |
|
626
|
|
|
* Remove substitution |
|
627
|
|
|
* |
|
628
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Substitution $substitution |
|
629
|
|
|
*/ |
|
630
|
1 |
|
public function removeSubstitution(\Torakel\DatabaseBundle\Entity\Substitution $substitution) |
|
631
|
|
|
{ |
|
632
|
1 |
|
$this->substitutions->removeElement($substitution); |
|
633
|
1 |
|
} |
|
634
|
|
|
|
|
635
|
|
|
/** |
|
636
|
|
|
* Get substitutions |
|
637
|
|
|
* |
|
638
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
639
|
|
|
*/ |
|
640
|
1 |
|
public function getSubstitutions() |
|
641
|
|
|
{ |
|
642
|
1 |
|
return $this->substitutions; |
|
643
|
|
|
} |
|
644
|
|
|
|
|
645
|
|
|
/** |
|
646
|
|
|
* Set referee |
|
647
|
|
|
* |
|
648
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Referee $referee |
|
649
|
|
|
* |
|
650
|
|
|
* @return Game |
|
651
|
|
|
*/ |
|
652
|
1 |
|
public function setReferee(\Torakel\DatabaseBundle\Entity\Referee $referee = null) |
|
653
|
|
|
{ |
|
654
|
1 |
|
$this->referee = $referee; |
|
655
|
|
|
|
|
656
|
1 |
|
return $this; |
|
657
|
|
|
} |
|
658
|
|
|
|
|
659
|
|
|
/** |
|
660
|
|
|
* Get referee |
|
661
|
|
|
* |
|
662
|
|
|
* @return \Torakel\DatabaseBundle\Entity\Referee |
|
663
|
|
|
*/ |
|
664
|
1 |
|
public function getReferee() |
|
665
|
|
|
{ |
|
666
|
1 |
|
return $this->referee; |
|
667
|
|
|
} |
|
668
|
|
|
|
|
669
|
|
|
/** |
|
670
|
|
|
* @ORM\PrePersist |
|
671
|
|
|
*/ |
|
672
|
1 |
|
public function prePersist() |
|
673
|
|
|
{ |
|
674
|
1 |
|
$this->createdAt = new \DateTime(); |
|
675
|
1 |
|
} |
|
676
|
|
|
|
|
677
|
|
|
/** |
|
678
|
|
|
* @ORM\PreUpdate |
|
679
|
|
|
*/ |
|
680
|
1 |
|
public function preUpdate() |
|
681
|
|
|
{ |
|
682
|
1 |
|
$this->updatedAt = new \DateTime(); |
|
683
|
1 |
|
} |
|
684
|
|
|
|
|
685
|
|
|
/** |
|
686
|
|
|
* Set coachHome |
|
687
|
|
|
* |
|
688
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Coach $coachHome |
|
689
|
|
|
* |
|
690
|
|
|
* @return Game |
|
691
|
|
|
*/ |
|
692
|
1 |
|
public function setCoachHome(\Torakel\DatabaseBundle\Entity\Coach $coachHome = null) |
|
693
|
|
|
{ |
|
694
|
1 |
|
$this->coachHome = $coachHome; |
|
695
|
|
|
|
|
696
|
1 |
|
return $this; |
|
697
|
|
|
} |
|
698
|
|
|
|
|
699
|
|
|
/** |
|
700
|
|
|
* Get coachHome |
|
701
|
|
|
* |
|
702
|
|
|
* @return \Torakel\DatabaseBundle\Entity\Coach |
|
703
|
|
|
*/ |
|
704
|
1 |
|
public function getCoachHome() |
|
705
|
|
|
{ |
|
706
|
1 |
|
return $this->coachHome; |
|
707
|
|
|
} |
|
708
|
|
|
|
|
709
|
|
|
/** |
|
710
|
|
|
* Set coachAway |
|
711
|
|
|
* |
|
712
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Coach $coachAway |
|
713
|
|
|
* |
|
714
|
|
|
* @return Game |
|
715
|
|
|
*/ |
|
716
|
1 |
|
public function setCoachAway(\Torakel\DatabaseBundle\Entity\Coach $coachAway = null) |
|
717
|
|
|
{ |
|
718
|
1 |
|
$this->coachAway = $coachAway; |
|
719
|
|
|
|
|
720
|
1 |
|
return $this; |
|
721
|
|
|
} |
|
722
|
|
|
|
|
723
|
|
|
/** |
|
724
|
|
|
* Get coachAway |
|
725
|
|
|
* |
|
726
|
|
|
* @return \Torakel\DatabaseBundle\Entity\Coach |
|
727
|
|
|
*/ |
|
728
|
1 |
|
public function getCoachAway() |
|
729
|
|
|
{ |
|
730
|
1 |
|
return $this->coachAway; |
|
731
|
|
|
} |
|
732
|
|
|
|
|
733
|
|
|
/** |
|
734
|
|
|
* Add card |
|
735
|
|
|
* |
|
736
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Card $card |
|
737
|
|
|
* |
|
738
|
|
|
* @return Game |
|
739
|
|
|
*/ |
|
740
|
1 |
|
public function addCard(\Torakel\DatabaseBundle\Entity\Card $card) |
|
741
|
|
|
{ |
|
742
|
1 |
|
$this->cards[] = $card; |
|
743
|
|
|
|
|
744
|
1 |
|
return $this; |
|
745
|
|
|
} |
|
746
|
|
|
|
|
747
|
|
|
/** |
|
748
|
|
|
* Remove card |
|
749
|
|
|
* |
|
750
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Card $card |
|
751
|
|
|
*/ |
|
752
|
1 |
|
public function removeCard(\Torakel\DatabaseBundle\Entity\Card $card) |
|
753
|
|
|
{ |
|
754
|
1 |
|
$this->cards->removeElement($card); |
|
755
|
1 |
|
} |
|
756
|
|
|
|
|
757
|
|
|
/** |
|
758
|
|
|
* Get cards |
|
759
|
|
|
* |
|
760
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
761
|
|
|
*/ |
|
762
|
1 |
|
public function getCards() |
|
763
|
|
|
{ |
|
764
|
1 |
|
return $this->cards; |
|
765
|
|
|
} |
|
766
|
|
|
|
|
767
|
|
|
/** |
|
768
|
|
|
* Add goal |
|
769
|
|
|
* |
|
770
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Goal $goal |
|
771
|
|
|
* |
|
772
|
|
|
* @return Game |
|
773
|
|
|
*/ |
|
774
|
1 |
|
public function addGoal(\Torakel\DatabaseBundle\Entity\Goal $goal) |
|
775
|
|
|
{ |
|
776
|
1 |
|
$this->goals[] = $goal; |
|
777
|
|
|
|
|
778
|
1 |
|
return $this; |
|
779
|
|
|
} |
|
780
|
|
|
|
|
781
|
|
|
/** |
|
782
|
|
|
* Remove goal |
|
783
|
|
|
* |
|
784
|
|
|
* @param \Torakel\DatabaseBundle\Entity\Goal $goal |
|
785
|
|
|
*/ |
|
786
|
1 |
|
public function removeGoal(\Torakel\DatabaseBundle\Entity\Goal $goal) |
|
787
|
|
|
{ |
|
788
|
1 |
|
$this->goals->removeElement($goal); |
|
789
|
1 |
|
} |
|
790
|
|
|
|
|
791
|
|
|
/** |
|
792
|
|
|
* Get goals |
|
793
|
|
|
* |
|
794
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
795
|
|
|
*/ |
|
796
|
1 |
|
public function getGoals() |
|
797
|
|
|
{ |
|
798
|
1 |
|
return $this->goals; |
|
799
|
|
|
} |
|
800
|
|
|
|
|
801
|
|
|
/** |
|
802
|
|
|
* Set resultCalculated |
|
803
|
|
|
* |
|
804
|
|
|
* @param bool $resultCalculated |
|
805
|
|
|
* |
|
806
|
|
|
* @return Game |
|
807
|
|
|
*/ |
|
808
|
1 |
|
public function setResultCalculated($resultCalculated) |
|
809
|
|
|
{ |
|
810
|
1 |
|
$this->resultCalculated = $resultCalculated; |
|
811
|
|
|
|
|
812
|
1 |
|
return $this; |
|
813
|
|
|
} |
|
814
|
|
|
|
|
815
|
|
|
/** |
|
816
|
|
|
* Get resultCalculated |
|
817
|
|
|
* |
|
818
|
|
|
* @return \bool |
|
|
|
|
|
|
819
|
|
|
*/ |
|
820
|
1 |
|
public function getResultCalculated() |
|
821
|
|
|
{ |
|
822
|
1 |
|
return $this->resultCalculated; |
|
|
|
|
|
|
823
|
|
|
} |
|
824
|
|
|
|
|
825
|
|
|
/** |
|
826
|
|
|
* Set slug |
|
827
|
|
|
* |
|
828
|
|
|
* @param string $slug |
|
829
|
|
|
* |
|
830
|
|
|
* @return Game |
|
831
|
|
|
*/ |
|
832
|
1 |
|
public function setSlug($slug) |
|
833
|
|
|
{ |
|
834
|
1 |
|
$this->slug = $slug; |
|
835
|
|
|
|
|
836
|
1 |
|
return $this; |
|
837
|
|
|
} |
|
838
|
|
|
|
|
839
|
|
|
/** |
|
840
|
|
|
* Get slug |
|
841
|
|
|
* |
|
842
|
|
|
* @return string |
|
843
|
|
|
*/ |
|
844
|
1 |
|
public function getSlug() |
|
845
|
|
|
{ |
|
846
|
1 |
|
return $this->slug; |
|
847
|
|
|
} |
|
848
|
|
|
|
|
849
|
|
|
/** |
|
850
|
|
|
* Set startTime |
|
851
|
|
|
* |
|
852
|
|
|
* @param \DateTime $startTime |
|
853
|
|
|
* |
|
854
|
|
|
* @return Game |
|
855
|
|
|
*/ |
|
856
|
1 |
|
public function setStartTime($startTime) |
|
857
|
|
|
{ |
|
858
|
1 |
|
$this->startTime = $startTime; |
|
859
|
|
|
|
|
860
|
1 |
|
return $this; |
|
861
|
|
|
} |
|
862
|
|
|
|
|
863
|
|
|
/** |
|
864
|
|
|
* Get startTime |
|
865
|
|
|
* |
|
866
|
|
|
* @return \DateTime |
|
867
|
|
|
*/ |
|
868
|
1 |
|
public function getStartTime() |
|
869
|
|
|
{ |
|
870
|
1 |
|
return $this->startTime; |
|
871
|
|
|
} |
|
872
|
|
|
|
|
873
|
|
|
/** |
|
874
|
|
|
* Add gamePlayerStatistic |
|
875
|
|
|
* |
|
876
|
|
|
* @param \Torakel\DatabaseBundle\Entity\GamePlayerStatistic $gamePlayerStatistic |
|
877
|
|
|
* |
|
878
|
|
|
* @return Game |
|
879
|
|
|
*/ |
|
880
|
1 |
|
public function addGamePlayerStatistic(\Torakel\DatabaseBundle\Entity\GamePlayerStatistic $gamePlayerStatistic) |
|
881
|
|
|
{ |
|
882
|
1 |
|
$this->gamePlayerStatistics[] = $gamePlayerStatistic; |
|
883
|
|
|
|
|
884
|
1 |
|
return $this; |
|
885
|
|
|
} |
|
886
|
|
|
|
|
887
|
|
|
/** |
|
888
|
|
|
* Remove gamePlayerStatistic |
|
889
|
|
|
* |
|
890
|
|
|
* @param \Torakel\DatabaseBundle\Entity\GamePlayerStatistic $gamePlayerStatistic |
|
891
|
|
|
*/ |
|
892
|
1 |
|
public function removeGamePlayerStatistic(\Torakel\DatabaseBundle\Entity\GamePlayerStatistic $gamePlayerStatistic) |
|
893
|
|
|
{ |
|
894
|
1 |
|
$this->gamePlayerStatistics->removeElement($gamePlayerStatistic); |
|
895
|
1 |
|
} |
|
896
|
|
|
|
|
897
|
|
|
/** |
|
898
|
|
|
* Get gamePlayerStatistics |
|
899
|
|
|
* |
|
900
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
901
|
|
|
*/ |
|
902
|
1 |
|
public function getGamePlayerStatistics() |
|
903
|
|
|
{ |
|
904
|
1 |
|
return $this->gamePlayerStatistics; |
|
905
|
|
|
} |
|
906
|
|
|
|
|
907
|
|
|
/** |
|
908
|
|
|
* Add gameTeamStatistic |
|
909
|
|
|
* |
|
910
|
|
|
* @param \Torakel\DatabaseBundle\Entity\GameTeamStatistic $gameTeamStatistic |
|
911
|
|
|
* |
|
912
|
|
|
* @return Game |
|
913
|
|
|
*/ |
|
914
|
1 |
|
public function addGameTeamStatistic(\Torakel\DatabaseBundle\Entity\GameTeamStatistic $gameTeamStatistic) |
|
915
|
|
|
{ |
|
916
|
1 |
|
$this->gameTeamStatistics[] = $gameTeamStatistic; |
|
917
|
|
|
|
|
918
|
1 |
|
return $this; |
|
919
|
|
|
} |
|
920
|
|
|
|
|
921
|
|
|
/** |
|
922
|
|
|
* Remove gameTeamStatistic |
|
923
|
|
|
* |
|
924
|
|
|
* @param \Torakel\DatabaseBundle\Entity\GameTeamStatistic $gameTeamStatistic |
|
925
|
|
|
*/ |
|
926
|
1 |
|
public function removeGameTeamStatistic(\Torakel\DatabaseBundle\Entity\GameTeamStatistic $gameTeamStatistic) |
|
927
|
|
|
{ |
|
928
|
1 |
|
$this->gameTeamStatistics->removeElement($gameTeamStatistic); |
|
929
|
1 |
|
} |
|
930
|
|
|
|
|
931
|
|
|
/** |
|
932
|
|
|
* Get gameTeamStatistics |
|
933
|
|
|
* |
|
934
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
935
|
|
|
*/ |
|
936
|
1 |
|
public function getGameTeamStatistics() |
|
937
|
|
|
{ |
|
938
|
1 |
|
return $this->gameTeamStatistics; |
|
939
|
|
|
} |
|
940
|
|
|
} |
|
941
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths