Passed
Push — master ( ba6cbc...6f6e1e )
by Mauro
01:53
created

MatchSheet   A

Complexity

Total Complexity 24

Size/Duplication

Total Lines 292
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 24
lcom 0
cbo 0
dl 0
loc 292
ccs 0
cts 108
cp 0
rs 10
c 0
b 0
f 0

24 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getDate() 0 4 1
A setDate() 0 5 1
A getDay() 0 4 1
A setDay() 0 5 1
A getHour() 0 4 1
A setHour() 0 5 1
A getHourStatus() 0 4 1
A setHourStatus() 0 5 1
A getIncidences() 0 4 1
A setIncidences() 0 5 1
A getInstance() 0 4 1
A setInstance() 0 5 1
A getLevel() 0 4 1
A setLevel() 0 5 1
A getStatus() 0 4 1
A setStatus() 0 5 1
A getTeams() 0 4 1
A setTeams() 0 5 1
A getTimezone() 0 4 1
A setTimezone() 0 5 1
A getType() 0 4 1
A setType() 0 5 1
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
    public function getId(): int
77
    {
78
        return $this->id;
79
    }
80
81
    /**
82
     * @param int $id
83
     *
84
     * @return MatchSheet
85
     */
86
    public function setId(int $id): MatchSheet
87
    {
88
        $this->id = $id;
89
        return $this;
90
    }
91
92
    /**
93
     * @return int
94
     */
95
    public function getDate(): int
96
    {
97
        return $this->date;
98
    }
99
100
    /**
101
     * @param int $date
102
     *
103
     * @return MatchSheet
104
     */
105
    public function setDate(int $date): MatchSheet
106
    {
107
        $this->date = $date;
108
        return $this;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getDay(): string
115
    {
116
        return $this->day;
117
    }
118
119
    /**
120
     * @param string $day
121
     *
122
     * @return MatchSheet
123
     */
124
    public function setDay(string $day): MatchSheet
125
    {
126
        $this->day = $day;
127
        return $this;
128
    }
129
130
    /**
131
     * @return string
132
     */
133
    public function getHour(): string
134
    {
135
        return $this->hour;
136
    }
137
138
    /**
139
     * @param string $hour
140
     *
141
     * @return MatchSheet
142
     */
143
    public function setHour(string $hour): MatchSheet
144
    {
145
        $this->hour = $hour;
146
        return $this;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getHourStatus(): string
153
    {
154
        return $this->hour_status;
155
    }
156
157
    /**
158
     * @param string $hour_status
159
     *
160
     * @return MatchSheet
161
     */
162
    public function setHourStatus(string $hour_status): MatchSheet
163
    {
164
        $this->hour_status = $hour_status;
165
        return $this;
166
    }
167
168
    /**
169
     * @return Incidence[]
170
     */
171
    public function getIncidences(): array
172
    {
173
        return $this->incidences;
174
    }
175
176
    /**
177
     * @param \MauroMoreno\DataFactory\Entity\Incidence[] $incidences
178
     *
179
     * @return MatchSheet
180
     */
181
    public function setIncidences(array $incidences): MatchSheet
182
    {
183
        $this->incidences = $incidences;
184
        return $this;
185
    }
186
187
    /**
188
     * @return string
189
     */
190
    public function getInstance(): string
191
    {
192
        return $this->instance;
193
    }
194
195
    /**
196
     * @param string $instance
197
     *
198
     * @return MatchSheet
199
     */
200
    public function setInstance(string $instance): MatchSheet
201
    {
202
        $this->instance = $instance;
203
        return $this;
204
    }
205
206
    /**
207
     * @return string
208
     */
209
    public function getLevel(): string
210
    {
211
        return $this->level;
212
    }
213
214
    /**
215
     * @param string $level
216
     *
217
     * @return MatchSheet
218
     */
219
    public function setLevel(string $level): MatchSheet
220
    {
221
        $this->level = $level;
222
        return $this;
223
    }
224
225
    /**
226
     * @return Status
227
     */
228
    public function getStatus(): Status
229
    {
230
        return $this->status;
231
    }
232
233
    /**
234
     * @param Status $status
235
     *
236
     * @return MatchSheet
237
     */
238
    public function setStatus(Status $status): MatchSheet
239
    {
240
        $this->status = $status;
241
        return $this;
242
    }
243
244
    /**
245
     * @return Team[]
246
     */
247
    public function getTeams(): array
248
    {
249
        return $this->teams;
250
    }
251
252
    /**
253
     * @param \MauroMoreno\DataFactory\Entity\Team[] $teams
254
     *
255
     * @return MatchSheet
256
     */
257
    public function setTeams(array $teams): MatchSheet
258
    {
259
        $this->teams = $teams;
260
        return $this;
261
    }
262
263
    /**
264
     * @return int
265
     */
266
    public function getTimezone(): int
267
    {
268
        return $this->timezone;
269
    }
270
271
    /**
272
     * @param int $timezone
273
     *
274
     * @return MatchSheet
275
     */
276
    public function setTimezone(int $timezone): MatchSheet
277
    {
278
        $this->timezone = $timezone;
279
        return $this;
280
    }
281
282
    /**
283
     * @return string
284
     */
285
    public function getType(): string
286
    {
287
        return $this->type;
288
    }
289
290
    /**
291
     * @param string $type
292
     *
293
     * @return MatchSheet
294
     */
295
    public function setType(string $type): MatchSheet
296
    {
297
        $this->type = $type;
298
        return $this;
299
    }
300
301
}
302