Passed
Push — master ( 099650...7ed4f3 )
by Julito
10:49
created

TrackEExercises::getStepsCounter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * TrackEExercises.
10
 *
11
 * @ORM\Table(name="track_e_exercises", indexes={
12
 *     @ORM\Index(name="idx_tee_user_id", columns={"exe_user_id"}),
13
 *     @ORM\Index(name="idx_tee_c_id", columns={"c_id"}),
14
 *     @ORM\Index(name="session_id", columns={"session_id"})
15
 * })
16
 * @ORM\Entity
17
 */
18
class TrackEExercises
19
{
20
    /**
21
     * @var int
22
     *
23
     * @ORM\Column(name="exe_user_id", type="integer", nullable=true)
24
     */
25
    protected $exeUserId;
26
27
    /**
28
     * @var \DateTime
29
     *
30
     * @ORM\Column(name="exe_date", type="datetime", nullable=false)
31
     */
32
    protected $exeDate;
33
34
    /**
35
     * @var int
36
     *
37
     * @ORM\Column(name="c_id", type="integer", nullable=false)
38
     */
39
    protected $cId;
40
41
    /**
42
     * @var int
43
     *
44
     * @ORM\Column(name="exe_exo_id", type="integer", nullable=false)
45
     */
46
    protected $exeExoId;
47
48
    /**
49
     * @var float
50
     *
51
     * @ORM\Column(name="score", type="float", precision=6, scale=2, nullable=false)
52
     */
53
    protected $score;
54
55
    /**
56
     * @var float
57
     *
58
     * @ORM\Column(name="max_score", type="float", precision=6, scale=2, nullable=false)
59
     */
60
    protected $maxScore;
61
62
    /**
63
     * @var string
64
     *
65
     * @ORM\Column(name="user_ip", type="string", length=39, nullable=false)
66
     */
67
    protected $userIp;
68
69
    /**
70
     * @var string
71
     *
72
     * @ORM\Column(name="status", type="string", length=20, nullable=false)
73
     */
74
    protected $status;
75
76
    /**
77
     * @var string
78
     *
79
     * @ORM\Column(name="data_tracking", type="text", nullable=false)
80
     */
81
    protected $dataTracking;
82
83
    /**
84
     * @var \DateTime
85
     *
86
     * @ORM\Column(name="start_date", type="datetime", nullable=false)
87
     */
88
    protected $startDate;
89
90
    /**
91
     * @var int
92
     *
93
     * @ORM\Column(name="steps_counter", type="smallint", nullable=false)
94
     */
95
    protected $stepsCounter;
96
97
    /**
98
     * @var int
99
     *
100
     * @ORM\Column(name="session_id", type="integer", nullable=false)
101
     */
102
    protected $sessionId;
103
104
    /**
105
     * @var int
106
     *
107
     * @ORM\Column(name="orig_lp_id", type="integer", nullable=false)
108
     */
109
    protected $origLpId;
110
111
    /**
112
     * @var int
113
     *
114
     * @ORM\Column(name="orig_lp_item_id", type="integer", nullable=false)
115
     */
116
    protected $origLpItemId;
117
118
    /**
119
     * @var int
120
     *
121
     * @ORM\Column(name="exe_duration", type="integer", nullable=false)
122
     */
123
    protected $exeDuration;
124
125
    /**
126
     * @var \DateTime
127
     *
128
     * @ORM\Column(name="expired_time_control", type="datetime", nullable=true)
129
     */
130
    protected $expiredTimeControl;
131
132
    /**
133
     * @var int
134
     *
135
     * @ORM\Column(name="orig_lp_item_view_id", type="integer", nullable=false)
136
     */
137
    protected $origLpItemViewId;
138
139
    /**
140
     * @var string
141
     *
142
     * @ORM\Column(name="questions_to_check", type="text", nullable=false)
143
     */
144
    protected $questionsToCheck;
145
146
    /**
147
     * @var int
148
     *
149
     * @ORM\Column(name="exe_id", type="integer")
150
     * @ORM\Id
151
     * @ORM\GeneratedValue(strategy="IDENTITY")
152
     */
153
    protected $exeId;
154
155
    /**
156
     * Set exeUserId.
157
     *
158
     * @param int $exeUserId
159
     *
160
     * @return TrackEExercises
161
     */
162
    public function setExeUserId($exeUserId)
163
    {
164
        $this->exeUserId = $exeUserId;
165
166
        return $this;
167
    }
168
169
    /**
170
     * Get exeUserId.
171
     *
172
     * @return int
173
     */
174
    public function getExeUserId()
175
    {
176
        return $this->exeUserId;
177
    }
178
179
    /**
180
     * Set exeDate.
181
     *
182
     * @param \DateTime $exeDate
183
     *
184
     * @return TrackEExercises
185
     */
186
    public function setExeDate($exeDate)
187
    {
188
        $this->exeDate = $exeDate;
189
190
        return $this;
191
    }
192
193
    /**
194
     * Get exeDate.
195
     *
196
     * @return \DateTime
197
     */
198
    public function getExeDate()
199
    {
200
        return $this->exeDate;
201
    }
202
203
    /**
204
     * Set cId.
205
     *
206
     * @param int $cId
207
     *
208
     * @return TrackEExercises
209
     */
210
    public function setCId($cId)
211
    {
212
        $this->cId = $cId;
213
214
        return $this;
215
    }
216
217
    /**
218
     * Get cId.
219
     *
220
     * @return int
221
     */
222
    public function getCId()
223
    {
224
        return $this->cId;
225
    }
226
227
    /**
228
     * Set exeExoId.
229
     *
230
     * @param int $exeExoId
231
     *
232
     * @return TrackEExercises
233
     */
234
    public function setExeExoId($exeExoId)
235
    {
236
        $this->exeExoId = $exeExoId;
237
238
        return $this;
239
    }
240
241
    /**
242
     * Get exeExoId.
243
     *
244
     * @return int
245
     */
246
    public function getExeExoId()
247
    {
248
        return $this->exeExoId;
249
    }
250
251
    /**
252
     * Set userIp.
253
     *
254
     * @param string $userIp
255
     *
256
     * @return TrackEExercises
257
     */
258
    public function setUserIp($userIp)
259
    {
260
        $this->userIp = $userIp;
261
262
        return $this;
263
    }
264
265
    /**
266
     * Get userIp.
267
     *
268
     * @return string
269
     */
270
    public function getUserIp()
271
    {
272
        return $this->userIp;
273
    }
274
275
    /**
276
     * Set status.
277
     *
278
     * @param string $status
279
     *
280
     * @return TrackEExercises
281
     */
282
    public function setStatus($status)
283
    {
284
        $this->status = $status;
285
286
        return $this;
287
    }
288
289
    /**
290
     * Get status.
291
     *
292
     * @return string
293
     */
294
    public function getStatus()
295
    {
296
        return $this->status;
297
    }
298
299
    /**
300
     * Set dataTracking.
301
     *
302
     * @param string $dataTracking
303
     *
304
     * @return TrackEExercises
305
     */
306
    public function setDataTracking($dataTracking)
307
    {
308
        $this->dataTracking = $dataTracking;
309
310
        return $this;
311
    }
312
313
    /**
314
     * Get dataTracking.
315
     *
316
     * @return string
317
     */
318
    public function getDataTracking()
319
    {
320
        return $this->dataTracking;
321
    }
322
323
    /**
324
     * Set startDate.
325
     *
326
     * @param \DateTime $startDate
327
     *
328
     * @return TrackEExercises
329
     */
330
    public function setStartDate($startDate)
331
    {
332
        $this->startDate = $startDate;
333
334
        return $this;
335
    }
336
337
    /**
338
     * Get startDate.
339
     *
340
     * @return \DateTime
341
     */
342
    public function getStartDate()
343
    {
344
        return $this->startDate;
345
    }
346
347
    /**
348
     * Set stepsCounter.
349
     *
350
     * @param int $stepsCounter
351
     *
352
     * @return TrackEExercises
353
     */
354
    public function setStepsCounter($stepsCounter)
355
    {
356
        $this->stepsCounter = $stepsCounter;
357
358
        return $this;
359
    }
360
361
    /**
362
     * Get stepsCounter.
363
     *
364
     * @return int
365
     */
366
    public function getStepsCounter()
367
    {
368
        return $this->stepsCounter;
369
    }
370
371
    /**
372
     * Set sessionId.
373
     *
374
     * @param int $sessionId
375
     *
376
     * @return TrackEExercises
377
     */
378
    public function setSessionId($sessionId)
379
    {
380
        $this->sessionId = $sessionId;
381
382
        return $this;
383
    }
384
385
    /**
386
     * Get sessionId.
387
     *
388
     * @return int
389
     */
390
    public function getSessionId()
391
    {
392
        return $this->sessionId;
393
    }
394
395
    /**
396
     * Set origLpId.
397
     *
398
     * @param int $origLpId
399
     *
400
     * @return TrackEExercises
401
     */
402
    public function setOrigLpId($origLpId)
403
    {
404
        $this->origLpId = $origLpId;
405
406
        return $this;
407
    }
408
409
    /**
410
     * Get origLpId.
411
     *
412
     * @return int
413
     */
414
    public function getOrigLpId()
415
    {
416
        return $this->origLpId;
417
    }
418
419
    /**
420
     * Set origLpItemId.
421
     *
422
     * @param int $origLpItemId
423
     *
424
     * @return TrackEExercises
425
     */
426
    public function setOrigLpItemId($origLpItemId)
427
    {
428
        $this->origLpItemId = $origLpItemId;
429
430
        return $this;
431
    }
432
433
    /**
434
     * Get origLpItemId.
435
     *
436
     * @return int
437
     */
438
    public function getOrigLpItemId()
439
    {
440
        return $this->origLpItemId;
441
    }
442
443
    /**
444
     * Set exeDuration.
445
     *
446
     * @param int $exeDuration
447
     *
448
     * @return TrackEExercises
449
     */
450
    public function setExeDuration($exeDuration)
451
    {
452
        $this->exeDuration = $exeDuration;
453
454
        return $this;
455
    }
456
457
    /**
458
     * Get exeDuration.
459
     *
460
     * @return int
461
     */
462
    public function getExeDuration()
463
    {
464
        return $this->exeDuration;
465
    }
466
467
    /**
468
     * Set expiredTimeControl.
469
     *
470
     * @param \DateTime $expiredTimeControl
471
     *
472
     * @return TrackEExercises
473
     */
474
    public function setExpiredTimeControl($expiredTimeControl)
475
    {
476
        $this->expiredTimeControl = $expiredTimeControl;
477
478
        return $this;
479
    }
480
481
    /**
482
     * Get expiredTimeControl.
483
     *
484
     * @return \DateTime
485
     */
486
    public function getExpiredTimeControl()
487
    {
488
        return $this->expiredTimeControl;
489
    }
490
491
    /**
492
     * Set origLpItemViewId.
493
     *
494
     * @param int $origLpItemViewId
495
     *
496
     * @return TrackEExercises
497
     */
498
    public function setOrigLpItemViewId($origLpItemViewId)
499
    {
500
        $this->origLpItemViewId = $origLpItemViewId;
501
502
        return $this;
503
    }
504
505
    /**
506
     * Get origLpItemViewId.
507
     *
508
     * @return int
509
     */
510
    public function getOrigLpItemViewId()
511
    {
512
        return $this->origLpItemViewId;
513
    }
514
515
    /**
516
     * Set questionsToCheck.
517
     *
518
     * @param string $questionsToCheck
519
     *
520
     * @return TrackEExercises
521
     */
522
    public function setQuestionsToCheck($questionsToCheck)
523
    {
524
        $this->questionsToCheck = $questionsToCheck;
525
526
        return $this;
527
    }
528
529
    /**
530
     * Get questionsToCheck.
531
     *
532
     * @return string
533
     */
534
    public function getQuestionsToCheck()
535
    {
536
        return $this->questionsToCheck;
537
    }
538
539
    /**
540
     * Get exeId.
541
     *
542
     * @return int
543
     */
544
    public function getExeId()
545
    {
546
        return $this->exeId;
547
    }
548
549
    /**
550
     * @return float
551
     */
552
    public function getScore(): float
553
    {
554
        return $this->score;
555
    }
556
557
    /**
558
     * @param float $score
559
     *
560
     * @return TrackEExercises
561
     */
562
    public function setScore(float $score): TrackEExercises
563
    {
564
        $this->score = $score;
565
566
        return $this;
567
    }
568
569
    /**
570
     * @return float
571
     */
572
    public function getMaxScore(): float
573
    {
574
        return $this->maxScore;
575
    }
576
577
    /**
578
     * @param float $maxScore
579
     *
580
     * @return TrackEExercises
581
     */
582
    public function setMaxScore(float $maxScore): TrackEExercises
583
    {
584
        $this->maxScore = $maxScore;
585
586
        return $this;
587
    }
588
}
589