Completed
Push — master ( 79826f...178f75 )
by Mauro
06:46
created

Incidence::getExtraCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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 int
60
     */
61
    private $order;
62
63
    /**
64
     * @var string
65
     */
66
    private $team_short_name;
67
68
    /**
69
     * @var string
70
     */
71
    private $time;
72
73
    /**
74
     * @var string
75
     */
76
    private $type;
77
78
    /**
79
     * @return int
80
     */
81
    public function getId(): int
82
    {
83
        return $this->id;
84
    }
85
86
    /**
87
     * @param int $id
88
     *
89
     * @return Incidence
90
     */
91
    public function setId(int $id): Incidence
92
    {
93
        $this->id = $id;
94
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getExtraCode(): string
101
    {
102
        return $this->extra_code;
103
    }
104
105
    /**
106
     * @param string $extra_code
107
     *
108
     * @return Incidence
109
     */
110
    public function setExtraCode(string $extra_code): Incidence
111
    {
112
        $this->extra_code = $extra_code;
113
        return $this;
114
    }
115
116
    /**
117
     * @return int
118
     */
119
    public function getIncidenceId(): int
120
    {
121
        return $this->incidence_id;
122
    }
123
124
    /**
125
     * @param int $incidence_id
126
     *
127
     * @return Incidence
128
     */
129
    public function setIncidenceId(int $incidence_id): Incidence
130
    {
131
        $this->incidence_id = $incidence_id;
132
        return $this;
133
    }
134
135
    /**
136
     * @return IncidenceKey
137
     */
138
    public function getKey(): IncidenceKey
139
    {
140
        return $this->key;
141
    }
142
143
    /**
144
     * @param IncidenceKey $key
145
     *
146
     * @return Incidence
147
     */
148
    public function setKey(IncidenceKey $key): Incidence
149
    {
150
        $this->key = $key;
151
        return $this;
152
    }
153
154
    /**
155
     * @return int
156
     */
157
    public function getMinute(): int
158
    {
159
        return $this->minute;
160
    }
161
162
    /**
163
     * @param int $minute
164
     *
165
     * @return Incidence
166
     */
167
    public function setMinute(int $minute): Incidence
168
    {
169
        $this->minute = $minute;
170
        return $this;
171
    }
172
173
    /**
174
     * @return int
175
     */
176
    public function getOrder(): int
177
    {
178
        return $this->order;
179
    }
180
181
    /**
182
     * @param int $order
183
     *
184
     * @return Incidence
185
     */
186
    public function setOrder(int $order): Incidence
187
    {
188
        $this->order = $order;
189
        return $this;
190
    }
191
192
    /**
193
     * @return IncidencePlayer
194
     */
195
    public function getPlayer(): IncidencePlayer
196
    {
197
        return $this->player;
198
    }
199
200
    /**
201
     * @param IncidencePlayer $player
202
     *
203
     * @return Incidence
204
     */
205
    public function setPlayer(IncidencePlayer $player): Incidence
206
    {
207
        $this->player = $player;
208
        return $this;
209
    }
210
211
    /**
212
     * @return IncidencePlayer
213
     */
214
    public function getPlayerIn(): IncidencePlayer
215
    {
216
        return $this->player_in;
217
    }
218
219
    /**
220
     * @param IncidencePlayer $player
221
     *
222
     * @return Incidence
223
     */
224
    public function setPlayerIn(IncidencePlayer $player): Incidence
225
    {
226
        $this->player_in = $player;
227
        return $this;
228
    }
229
230
    /**
231
     * @return IncidencePlayer
232
     */
233
    public function getPlayerOut(): IncidencePlayer
234
    {
235
        return $this->player_out;
236
    }
237
238
    /**
239
     * @param IncidencePlayer $player
240
     *
241
     * @return Incidence
242
     */
243
    public function setPlayerOut(IncidencePlayer $player): Incidence
244
    {
245
        $this->player_out = $player;
246
        return $this;
247
    }
248
249
    /**
250
     * @return int
251
     */
252
    public function getSecond(): int
253
    {
254
        return $this->second;
255
    }
256
257
    /**
258
     * @param int $second
259
     *
260
     * @return Incidence
261
     */
262
    public function setSecond(int $second): Incidence
263
    {
264
        $this->second = $second;
265
        return $this;
266
    }
267
268
    /**
269
     * @return string
270
     */
271
    public function getTeamShortName(): string
272
    {
273
        return $this->team_short_name;
274
    }
275
276
    /**
277
     * @param string $team_short_name
278
     *
279
     * @return Incidence
280
     */
281
    public function setTeamShortName(string $team_short_name): Incidence
282
    {
283
        $this->team_short_name = $team_short_name;
284
        return $this;
285
    }
286
287
    /**
288
     * @return string
289
     */
290
    public function getTime(): string
291
    {
292
        return $this->time;
293
    }
294
295
    /**
296
     * @param string $time
297
     *
298
     * @return Incidence
299
     */
300
    public function setTime(string $time): Incidence
301
    {
302
        $this->time = $time;
303
        return $this;
304
    }
305
306
    /**
307
     * @return string
308
     */
309
    public function getType(): string
310
    {
311
        return $this->type;
312
    }
313
314
    /**
315
     * @param string $type
316
     *
317
     * @return Incidence
318
     */
319
    public function setType(string $type): Incidence
320
    {
321
        $this->type = $type;
322
        return $this;
323
    }
324
325
}
326