Passed
Push — master ( 7d0dcf...05e539 )
by Julito
10:08
created

CLpItemView::getIid()   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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CourseBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * CLpItemView.
11
 *
12
 * @ORM\Table(
13
 *  name="c_lp_item_view",
14
 *  indexes={
15
 *      @ORM\Index(name="course", columns={"c_id"}),
16
 *      @ORM\Index(name="lp_item_id", columns={"lp_item_id"}),
17
 *      @ORM\Index(name="lp_view_id", columns={"lp_view_id"}),
18
 *      @ORM\Index(name="idx_c_lp_item_view_cid_lp_view_id_lp_item_id", columns={"c_id", "lp_view_id", "lp_item_id"}),
19
 *      @ORM\Index(name="idx_c_lp_item_view_cid_id_view_count", columns={"c_id", "iid", "view_count"})
20
 *
21
 *  }
22
 * )
23
 * @ORM\Entity
24
 */
25
class CLpItemView
26
{
27
    /**
28
     * @var int
29
     *
30
     * @ORM\Column(name="iid", type="integer")
31
     * @ORM\Id
32
     * @ORM\GeneratedValue
33
     */
34
    protected $iid;
35
36
    /**
37
     * @var int
38
     *
39
     * @ORM\Column(name="c_id", type="integer")
40
     */
41
    protected $cId;
42
43
    /**
44
     * @var int
45
     *
46
     * @ORM\Column(name="lp_item_id", type="integer", nullable=false)
47
     */
48
    protected $lpItemId;
49
50
    /**
51
     * @var int
52
     *
53
     * @ORM\Column(name="lp_view_id", type="integer", nullable=false)
54
     */
55
    protected $lpViewId;
56
57
    /**
58
     * @var int
59
     *
60
     * @ORM\Column(name="view_count", type="integer", nullable=false)
61
     */
62
    protected $viewCount;
63
64
    /**
65
     * @var int
66
     *
67
     * @ORM\Column(name="start_time", type="integer", nullable=false)
68
     */
69
    protected $startTime;
70
71
    /**
72
     * @var int
73
     *
74
     * @ORM\Column(name="total_time", type="integer", nullable=false)
75
     */
76
    protected $totalTime;
77
78
    /**
79
     * @var float
80
     *
81
     * @ORM\Column(name="score", type="float", precision=10, scale=0, nullable=false)
82
     */
83
    protected $score;
84
85
    /**
86
     * @var string
87
     *
88
     * @ORM\Column(name="status", type="string", length=32, nullable=false, options={"default":"not attempted"})
89
     */
90
    protected $status;
91
92
    /**
93
     * @var string
94
     *
95
     * @ORM\Column(name="suspend_data", type="text", nullable=true)
96
     */
97
    protected $suspendData;
98
99
    /**
100
     * @var string
101
     *
102
     * @ORM\Column(name="lesson_location", type="text", nullable=true)
103
     */
104
    protected $lessonLocation;
105
106
    /**
107
     * @var string
108
     *
109
     * @ORM\Column(name="core_exit", type="string", length=32, nullable=false, options={"default":"none"})
110
     */
111
    protected $coreExit;
112
113
    /**
114
     * @var string
115
     *
116
     * @ORM\Column(name="max_score", type="string", length=8, nullable=true)
117
     */
118
    protected $maxScore;
119
120
    /**
121
     * CLpItemView constructor.
122
     */
123
    public function __construct()
124
    {
125
        $this->status = 'not attempted';
126
        $this->coreExit = 'none';
127
    }
128
129
    /**
130
     * @return int
131
     */
132
    public function getIid(): int
133
    {
134
        return $this->iid;
135
    }
136
137
    /**
138
     * Set lpItemId.
139
     *
140
     * @param int $lpItemId
141
     *
142
     * @return CLpItemView
143
     */
144
    public function setLpItemId($lpItemId)
145
    {
146
        $this->lpItemId = $lpItemId;
147
148
        return $this;
149
    }
150
151
    /**
152
     * Get lpItemId.
153
     *
154
     * @return int
155
     */
156
    public function getLpItemId()
157
    {
158
        return $this->lpItemId;
159
    }
160
161
    /**
162
     * Set lpViewId.
163
     *
164
     * @param int $lpViewId
165
     *
166
     * @return CLpItemView
167
     */
168
    public function setLpViewId($lpViewId)
169
    {
170
        $this->lpViewId = $lpViewId;
171
172
        return $this;
173
    }
174
175
    /**
176
     * Get lpViewId.
177
     *
178
     * @return int
179
     */
180
    public function getLpViewId()
181
    {
182
        return $this->lpViewId;
183
    }
184
185
    /**
186
     * Set viewCount.
187
     *
188
     * @param int $viewCount
189
     *
190
     * @return CLpItemView
191
     */
192
    public function setViewCount($viewCount)
193
    {
194
        $this->viewCount = $viewCount;
195
196
        return $this;
197
    }
198
199
    /**
200
     * Get viewCount.
201
     *
202
     * @return int
203
     */
204
    public function getViewCount()
205
    {
206
        return $this->viewCount;
207
    }
208
209
    /**
210
     * Set startTime.
211
     *
212
     * @param int $startTime
213
     *
214
     * @return CLpItemView
215
     */
216
    public function setStartTime($startTime)
217
    {
218
        $this->startTime = $startTime;
219
220
        return $this;
221
    }
222
223
    /**
224
     * Get startTime.
225
     *
226
     * @return int
227
     */
228
    public function getStartTime()
229
    {
230
        return $this->startTime;
231
    }
232
233
    /**
234
     * Set totalTime.
235
     *
236
     * @param int $totalTime
237
     *
238
     * @return CLpItemView
239
     */
240
    public function setTotalTime($totalTime)
241
    {
242
        $this->totalTime = $totalTime;
243
244
        return $this;
245
    }
246
247
    /**
248
     * Get totalTime.
249
     *
250
     * @return int
251
     */
252
    public function getTotalTime()
253
    {
254
        return $this->totalTime;
255
    }
256
257
    /**
258
     * Set score.
259
     *
260
     * @param float $score
261
     *
262
     * @return CLpItemView
263
     */
264
    public function setScore($score)
265
    {
266
        $this->score = $score;
267
268
        return $this;
269
    }
270
271
    /**
272
     * Get score.
273
     *
274
     * @return float
275
     */
276
    public function getScore()
277
    {
278
        return $this->score;
279
    }
280
281
    /**
282
     * Set status.
283
     *
284
     * @param string $status
285
     *
286
     * @return CLpItemView
287
     */
288
    public function setStatus($status)
289
    {
290
        $this->status = $status;
291
292
        return $this;
293
    }
294
295
    /**
296
     * Get status.
297
     *
298
     * @return string
299
     */
300
    public function getStatus()
301
    {
302
        return $this->status;
303
    }
304
305
    /**
306
     * Set suspendData.
307
     *
308
     * @param string $suspendData
309
     *
310
     * @return CLpItemView
311
     */
312
    public function setSuspendData($suspendData)
313
    {
314
        $this->suspendData = $suspendData;
315
316
        return $this;
317
    }
318
319
    /**
320
     * Get suspendData.
321
     *
322
     * @return string
323
     */
324
    public function getSuspendData()
325
    {
326
        return $this->suspendData;
327
    }
328
329
    /**
330
     * Set lessonLocation.
331
     *
332
     * @param string $lessonLocation
333
     *
334
     * @return CLpItemView
335
     */
336
    public function setLessonLocation($lessonLocation)
337
    {
338
        $this->lessonLocation = $lessonLocation;
339
340
        return $this;
341
    }
342
343
    /**
344
     * Get lessonLocation.
345
     *
346
     * @return string
347
     */
348
    public function getLessonLocation()
349
    {
350
        return $this->lessonLocation;
351
    }
352
353
    /**
354
     * Set coreExit.
355
     *
356
     * @param string $coreExit
357
     *
358
     * @return CLpItemView
359
     */
360
    public function setCoreExit($coreExit)
361
    {
362
        $this->coreExit = $coreExit;
363
364
        return $this;
365
    }
366
367
    /**
368
     * Get coreExit.
369
     *
370
     * @return string
371
     */
372
    public function getCoreExit()
373
    {
374
        return $this->coreExit;
375
    }
376
377
    /**
378
     * Set maxScore.
379
     *
380
     * @param string $maxScore
381
     *
382
     * @return CLpItemView
383
     */
384
    public function setMaxScore($maxScore)
385
    {
386
        $this->maxScore = $maxScore;
387
388
        return $this;
389
    }
390
391
    /**
392
     * Get maxScore.
393
     *
394
     * @return string
395
     */
396
    public function getMaxScore()
397
    {
398
        return $this->maxScore;
399
    }
400
401
    /**
402
     * Set cId.
403
     *
404
     * @param int $cId
405
     *
406
     * @return CLpItemView
407
     */
408
    public function setCId($cId)
409
    {
410
        $this->cId = $cId;
411
412
        return $this;
413
    }
414
415
    /**
416
     * Get cId.
417
     *
418
     * @return int
419
     */
420
    public function getCId()
421
    {
422
        return $this->cId;
423
    }
424
}
425