1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace MauroMoreno\DataFactory\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class Incidence |
7
|
|
|
* |
8
|
|
|
* @package MauroMoreno\DataFactory\Entity |
9
|
|
|
*/ |
10
|
|
|
class Incidence |
11
|
|
|
{ |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var int |
15
|
|
|
*/ |
16
|
|
|
private $id; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string |
20
|
|
|
*/ |
21
|
|
|
private $extra_code; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int |
25
|
|
|
*/ |
26
|
|
|
private $incidence_id; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var IncidenceKey |
30
|
|
|
*/ |
31
|
|
|
private $key; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var int |
35
|
|
|
*/ |
36
|
|
|
private $minute; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var IncidencePlayer |
40
|
|
|
*/ |
41
|
|
|
private $player; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var IncidencePlayer |
45
|
|
|
*/ |
46
|
|
|
private $player_in; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var IncidencePlayer |
50
|
|
|
*/ |
51
|
|
|
private $player_out; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var int |
55
|
|
|
*/ |
56
|
|
|
private $second; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string |
60
|
|
|
*/ |
61
|
|
|
private $subtype; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var int |
65
|
|
|
*/ |
66
|
|
|
private $order; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var string |
70
|
|
|
*/ |
71
|
|
|
private $team_short_name; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var string |
75
|
|
|
*/ |
76
|
|
|
private $time; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var string |
80
|
|
|
*/ |
81
|
|
|
private $type; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @return int |
85
|
|
|
*/ |
86
|
1 |
|
public function getId(): int |
87
|
|
|
{ |
88
|
1 |
|
return $this->id; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @param int $id |
93
|
|
|
* |
94
|
|
|
* @return Incidence |
95
|
|
|
*/ |
96
|
2 |
|
public function setId(int $id): Incidence |
97
|
|
|
{ |
98
|
2 |
|
$this->id = $id; |
99
|
2 |
|
return $this; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return string |
104
|
|
|
*/ |
105
|
1 |
|
public function getExtraCode(): string |
106
|
|
|
{ |
107
|
1 |
|
return $this->extra_code; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @param string $extra_code |
112
|
|
|
* |
113
|
|
|
* @return Incidence |
114
|
|
|
*/ |
115
|
2 |
|
public function setExtraCode(string $extra_code): Incidence |
116
|
|
|
{ |
117
|
2 |
|
$this->extra_code = $extra_code; |
118
|
2 |
|
return $this; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @return int |
123
|
|
|
*/ |
124
|
1 |
|
public function getIncidenceId(): int |
125
|
|
|
{ |
126
|
1 |
|
return $this->incidence_id; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @param int $incidence_id |
131
|
|
|
* |
132
|
|
|
* @return Incidence |
133
|
|
|
*/ |
134
|
2 |
|
public function setIncidenceId(int $incidence_id): Incidence |
135
|
|
|
{ |
136
|
2 |
|
$this->incidence_id = $incidence_id; |
137
|
2 |
|
return $this; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @return IncidenceKey |
142
|
|
|
*/ |
143
|
1 |
|
public function getKey(): IncidenceKey |
144
|
|
|
{ |
145
|
1 |
|
return $this->key; |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* @param IncidenceKey $key |
150
|
|
|
* |
151
|
|
|
* @return Incidence |
152
|
|
|
*/ |
153
|
2 |
|
public function setKey(IncidenceKey $key): Incidence |
154
|
|
|
{ |
155
|
2 |
|
$this->key = $key; |
156
|
2 |
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @return int |
161
|
|
|
*/ |
162
|
1 |
|
public function getMinute(): int |
163
|
|
|
{ |
164
|
1 |
|
return $this->minute; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @param int $minute |
169
|
|
|
* |
170
|
|
|
* @return Incidence |
171
|
|
|
*/ |
172
|
2 |
|
public function setMinute(int $minute): Incidence |
173
|
|
|
{ |
174
|
2 |
|
$this->minute = $minute; |
175
|
2 |
|
return $this; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @return int |
180
|
|
|
*/ |
181
|
1 |
|
public function getOrder(): int |
182
|
|
|
{ |
183
|
1 |
|
return $this->order; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @param int $order |
188
|
|
|
* |
189
|
|
|
* @return Incidence |
190
|
|
|
*/ |
191
|
2 |
|
public function setOrder(int $order): Incidence |
192
|
|
|
{ |
193
|
2 |
|
$this->order = $order; |
194
|
2 |
|
return $this; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* @return IncidencePlayer |
199
|
|
|
*/ |
200
|
1 |
|
public function getPlayer(): IncidencePlayer |
201
|
|
|
{ |
202
|
1 |
|
return $this->player; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @param IncidencePlayer $player |
207
|
|
|
* |
208
|
|
|
* @return Incidence |
209
|
|
|
*/ |
210
|
2 |
|
public function setPlayer(IncidencePlayer $player): Incidence |
211
|
|
|
{ |
212
|
2 |
|
$this->player = $player; |
213
|
2 |
|
return $this; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @return IncidencePlayer |
218
|
|
|
*/ |
219
|
1 |
|
public function getPlayerIn(): IncidencePlayer |
220
|
|
|
{ |
221
|
1 |
|
return $this->player_in; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @param IncidencePlayer $player |
226
|
|
|
* |
227
|
|
|
* @return Incidence |
228
|
|
|
*/ |
229
|
2 |
|
public function setPlayerIn(IncidencePlayer $player): Incidence |
230
|
|
|
{ |
231
|
2 |
|
$this->player_in = $player; |
232
|
2 |
|
return $this; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @return IncidencePlayer |
237
|
|
|
*/ |
238
|
1 |
|
public function getPlayerOut(): IncidencePlayer |
239
|
|
|
{ |
240
|
1 |
|
return $this->player_out; |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* @param IncidencePlayer $player |
245
|
|
|
* |
246
|
|
|
* @return Incidence |
247
|
|
|
*/ |
248
|
2 |
|
public function setPlayerOut(IncidencePlayer $player): Incidence |
249
|
|
|
{ |
250
|
2 |
|
$this->player_out = $player; |
251
|
2 |
|
return $this; |
252
|
|
|
} |
253
|
|
|
|
254
|
|
|
/** |
255
|
|
|
* @return int |
256
|
|
|
*/ |
257
|
1 |
|
public function getSecond(): int |
258
|
|
|
{ |
259
|
1 |
|
return $this->second; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* @param int $second |
264
|
|
|
* |
265
|
|
|
* @return Incidence |
266
|
|
|
*/ |
267
|
2 |
|
public function setSecond(int $second): Incidence |
268
|
|
|
{ |
269
|
2 |
|
$this->second = $second; |
270
|
2 |
|
return $this; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* @return string |
275
|
|
|
*/ |
276
|
1 |
|
public function getSubtype(): string |
277
|
|
|
{ |
278
|
1 |
|
return $this->subtype; |
279
|
|
|
} |
280
|
|
|
|
281
|
|
|
/** |
282
|
|
|
* @param string $subtype |
283
|
|
|
* |
284
|
|
|
* @return Incidence |
285
|
|
|
*/ |
286
|
2 |
|
public function setSubtype(string $subtype): Incidence |
287
|
|
|
{ |
288
|
2 |
|
$this->subtype = $subtype; |
289
|
2 |
|
return $this; |
290
|
|
|
} |
291
|
|
|
|
292
|
|
|
/** |
293
|
|
|
* @return string |
294
|
|
|
*/ |
295
|
1 |
|
public function getTeamShortName(): string |
296
|
|
|
{ |
297
|
1 |
|
return $this->team_short_name; |
298
|
|
|
} |
299
|
|
|
|
300
|
|
|
/** |
301
|
|
|
* @param string $team_short_name |
302
|
|
|
* |
303
|
|
|
* @return Incidence |
304
|
|
|
*/ |
305
|
2 |
|
public function setTeamShortName(string $team_short_name): Incidence |
306
|
|
|
{ |
307
|
2 |
|
$this->team_short_name = $team_short_name; |
308
|
2 |
|
return $this; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* @return string |
313
|
|
|
*/ |
314
|
1 |
|
public function getTime(): string |
315
|
|
|
{ |
316
|
1 |
|
return $this->time; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* @param string $time |
321
|
|
|
* |
322
|
|
|
* @return Incidence |
323
|
|
|
*/ |
324
|
2 |
|
public function setTime(string $time): Incidence |
325
|
|
|
{ |
326
|
2 |
|
$this->time = $time; |
327
|
2 |
|
return $this; |
328
|
|
|
} |
329
|
|
|
|
330
|
|
|
/** |
331
|
|
|
* @return string |
332
|
|
|
*/ |
333
|
1 |
|
public function getType(): string |
334
|
|
|
{ |
335
|
1 |
|
return $this->type; |
336
|
|
|
} |
337
|
|
|
|
338
|
|
|
/** |
339
|
|
|
* @param string $type |
340
|
|
|
* |
341
|
|
|
* @return Incidence |
342
|
|
|
*/ |
343
|
2 |
|
public function setType(string $type): Incidence |
344
|
|
|
{ |
345
|
2 |
|
$this->type = $type; |
346
|
2 |
|
return $this; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
} |
350
|
|
|
|