1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace MauroMoreno\DataFactory\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class MatchSheet |
7
|
|
|
* |
8
|
|
|
* @package MauroMoreno\DataFactory\Entity |
9
|
|
|
*/ |
10
|
|
|
class MatchSheet |
11
|
|
|
{ |
12
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* @var int |
15
|
|
|
*/ |
16
|
|
|
private $id; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var int |
20
|
|
|
*/ |
21
|
|
|
private $date; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string |
25
|
|
|
*/ |
26
|
|
|
private $day; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
private $hour; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string |
35
|
|
|
*/ |
36
|
|
|
private $hour_status; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var Incidence[] |
40
|
|
|
*/ |
41
|
|
|
private $incidences; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
private $instance; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
private $level; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var Status |
55
|
|
|
*/ |
56
|
|
|
private $status; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var Team[] |
60
|
|
|
*/ |
61
|
|
|
private $teams; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var string |
65
|
|
|
*/ |
66
|
|
|
private $type; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var int |
70
|
|
|
*/ |
71
|
|
|
private $timezone; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @return int |
75
|
|
|
*/ |
76
|
1 |
|
public function getId(): int |
77
|
|
|
{ |
78
|
1 |
|
return $this->id; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @param int $id |
83
|
|
|
* |
84
|
|
|
* @return MatchSheet |
85
|
|
|
*/ |
86
|
3 |
|
public function setId(int $id): MatchSheet |
87
|
|
|
{ |
88
|
3 |
|
$this->id = $id; |
89
|
3 |
|
return $this; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @return int |
94
|
|
|
*/ |
95
|
1 |
|
public function getDate(): int |
96
|
|
|
{ |
97
|
1 |
|
return $this->date; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @param int $date |
102
|
|
|
* |
103
|
|
|
* @return MatchSheet |
104
|
|
|
*/ |
105
|
3 |
|
public function setDate(int $date): MatchSheet |
106
|
|
|
{ |
107
|
3 |
|
$this->date = $date; |
108
|
3 |
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return string |
113
|
|
|
*/ |
114
|
1 |
|
public function getDay(): string |
115
|
|
|
{ |
116
|
1 |
|
return $this->day; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param string $day |
121
|
|
|
* |
122
|
|
|
* @return MatchSheet |
123
|
|
|
*/ |
124
|
3 |
|
public function setDay(string $day): MatchSheet |
125
|
|
|
{ |
126
|
3 |
|
$this->day = $day; |
127
|
3 |
|
return $this; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @return string |
132
|
|
|
*/ |
133
|
1 |
|
public function getHour(): string |
134
|
|
|
{ |
135
|
1 |
|
return $this->hour; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @param string $hour |
140
|
|
|
* |
141
|
|
|
* @return MatchSheet |
142
|
|
|
*/ |
143
|
3 |
|
public function setHour(string $hour): MatchSheet |
144
|
|
|
{ |
145
|
3 |
|
$this->hour = $hour; |
146
|
3 |
|
return $this; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @return string |
151
|
|
|
*/ |
152
|
1 |
|
public function getHourStatus(): string |
153
|
|
|
{ |
154
|
1 |
|
return $this->hour_status; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @param string $hour_status |
159
|
|
|
* |
160
|
|
|
* @return MatchSheet |
161
|
|
|
*/ |
162
|
2 |
|
public function setHourStatus(string $hour_status): MatchSheet |
163
|
|
|
{ |
164
|
2 |
|
$this->hour_status = $hour_status; |
165
|
2 |
|
return $this; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @return Incidence[] |
170
|
|
|
*/ |
171
|
1 |
|
public function getIncidences(): array |
172
|
|
|
{ |
173
|
1 |
|
return $this->incidences; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @param \MauroMoreno\DataFactory\Entity\Incidence[] $incidences |
178
|
|
|
* |
179
|
|
|
* @return MatchSheet |
180
|
|
|
*/ |
181
|
3 |
|
public function setIncidences(array $incidences): MatchSheet |
182
|
|
|
{ |
183
|
3 |
|
$this->incidences = $incidences; |
184
|
3 |
|
return $this; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* @return string |
189
|
|
|
*/ |
190
|
1 |
|
public function getInstance(): string |
191
|
|
|
{ |
192
|
1 |
|
return $this->instance; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @param string $instance |
197
|
|
|
* |
198
|
|
|
* @return MatchSheet |
199
|
|
|
*/ |
200
|
3 |
|
public function setInstance(string $instance): MatchSheet |
201
|
|
|
{ |
202
|
3 |
|
$this->instance = $instance; |
203
|
3 |
|
return $this; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @return string |
208
|
|
|
*/ |
209
|
1 |
|
public function getLevel(): string |
210
|
|
|
{ |
211
|
1 |
|
return $this->level; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* @param string $level |
216
|
|
|
* |
217
|
|
|
* @return MatchSheet |
218
|
|
|
*/ |
219
|
3 |
|
public function setLevel(string $level): MatchSheet |
220
|
|
|
{ |
221
|
3 |
|
$this->level = $level; |
222
|
3 |
|
return $this; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @return Status |
227
|
|
|
*/ |
228
|
1 |
|
public function getStatus(): Status |
229
|
|
|
{ |
230
|
1 |
|
return $this->status; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @param Status $status |
235
|
|
|
* |
236
|
|
|
* @return MatchSheet |
237
|
|
|
*/ |
238
|
3 |
|
public function setStatus(Status $status): MatchSheet |
239
|
|
|
{ |
240
|
3 |
|
$this->status = $status; |
241
|
3 |
|
return $this; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @return Team[] |
246
|
|
|
*/ |
247
|
1 |
|
public function getTeams(): array |
248
|
|
|
{ |
249
|
1 |
|
return $this->teams; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
/** |
253
|
|
|
* @param \MauroMoreno\DataFactory\Entity\Team[] $teams |
254
|
|
|
* |
255
|
|
|
* @return MatchSheet |
256
|
|
|
*/ |
257
|
3 |
|
public function setTeams(array $teams): MatchSheet |
258
|
|
|
{ |
259
|
3 |
|
$this->teams = $teams; |
260
|
3 |
|
return $this; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* @return int |
265
|
|
|
*/ |
266
|
1 |
|
public function getTimezone(): int |
267
|
|
|
{ |
268
|
1 |
|
return $this->timezone; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
/** |
272
|
|
|
* @param int $timezone |
273
|
|
|
* |
274
|
|
|
* @return MatchSheet |
275
|
|
|
*/ |
276
|
3 |
|
public function setTimezone(int $timezone): MatchSheet |
277
|
|
|
{ |
278
|
3 |
|
$this->timezone = $timezone; |
279
|
3 |
|
return $this; |
280
|
|
|
} |
281
|
|
|
|
282
|
|
|
/** |
283
|
|
|
* @return string |
284
|
|
|
*/ |
285
|
1 |
|
public function getType(): string |
286
|
|
|
{ |
287
|
1 |
|
return $this->type; |
288
|
|
|
} |
289
|
|
|
|
290
|
|
|
/** |
291
|
|
|
* @param string $type |
292
|
|
|
* |
293
|
|
|
* @return MatchSheet |
294
|
|
|
*/ |
295
|
3 |
|
public function setType(string $type): MatchSheet |
296
|
|
|
{ |
297
|
3 |
|
$this->type = $type; |
298
|
3 |
|
return $this; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
} |
302
|
|
|
|