CSurveyQuestion   A
last analyzed

Complexity

Total Complexity 26

Size/Duplication

Total Lines 412
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 54
dl 0
loc 412
rs 10
c 0
b 0
f 0
wmc 26

26 Methods

Rating   Name   Duplication   Size   Complexity  
A getSurveyGroupSec1() 0 3 1
A getDisplay() 0 3 1
A getSharedQuestionId() 0 3 1
A getSort() 0 3 1
A getMaxValue() 0 3 1
A getSurveyQuestion() 0 3 1
A getSurveyId() 0 3 1
A getCId() 0 3 1
A getSurveyQuestionComment() 0 3 1
A getSurveyGroupSec2() 0 3 1
A getType() 0 3 1
A getQuestionId() 0 3 1
A getSurveyGroupPri() 0 3 1
A setMaxValue() 0 5 1
A setSort() 0 5 1
A setType() 0 5 1
A setSurveyGroupSec2() 0 5 1
A setSurveyQuestionComment() 0 5 1
A setCId() 0 5 1
A setSurveyGroupSec1() 0 5 1
A setQuestionId() 0 5 1
A setSurveyGroupPri() 0 5 1
A setSurveyId() 0 5 1
A setDisplay() 0 5 1
A setSharedQuestionId() 0 5 1
A setSurveyQuestion() 0 5 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * CSurveyQuestion.
10
 *
11
 * @ORM\Table(
12
 *  name="c_survey_question",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CSurveyQuestion
20
{
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    protected $iid;
29
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(name="c_id", type="integer")
34
     */
35
    protected $cId;
36
37
    /**
38
     * @var int
39
     *
40
     * @ORM\Column(name="question_id", type="integer")
41
     */
42
    protected $questionId;
43
44
    /**
45
     * @var int
46
     *
47
     * @ORM\Column(name="survey_id", type="integer", nullable=false)
48
     */
49
    protected $surveyId;
50
51
    /**
52
     * @var string
53
     *
54
     * @ORM\Column(name="survey_question", type="text", nullable=false)
55
     */
56
    protected $surveyQuestion;
57
58
    /**
59
     * @var string
60
     *
61
     * @ORM\Column(name="survey_question_comment", type="text", nullable=false)
62
     */
63
    protected $surveyQuestionComment;
64
65
    /**
66
     * @var string
67
     *
68
     * @ORM\Column(name="type", type="string", length=250, nullable=false)
69
     */
70
    protected $type;
71
72
    /**
73
     * @var string
74
     *
75
     * @ORM\Column(name="display", type="string", length=10, nullable=false)
76
     */
77
    protected $display;
78
79
    /**
80
     * @var int
81
     *
82
     * @ORM\Column(name="sort", type="integer", nullable=false)
83
     */
84
    protected $sort;
85
86
    /**
87
     * @var int
88
     *
89
     * @ORM\Column(name="shared_question_id", type="integer", nullable=true)
90
     */
91
    protected $sharedQuestionId;
92
93
    /**
94
     * @var int
95
     *
96
     * @ORM\Column(name="max_value", type="integer", nullable=true)
97
     */
98
    protected $maxValue;
99
100
    /**
101
     * @var int
102
     *
103
     * @ORM\Column(name="survey_group_pri", type="integer", nullable=false)
104
     */
105
    protected $surveyGroupPri;
106
107
    /**
108
     * @var int
109
     *
110
     * @ORM\Column(name="survey_group_sec1", type="integer", nullable=false)
111
     */
112
    protected $surveyGroupSec1;
113
114
    /**
115
     * @var int
116
     *
117
     * @ORM\Column(name="survey_group_sec2", type="integer", nullable=false)
118
     */
119
    protected $surveyGroupSec2;
120
121
    /**
122
     * Set surveyId.
123
     *
124
     * @param int $surveyId
125
     *
126
     * @return CSurveyQuestion
127
     */
128
    public function setSurveyId($surveyId)
129
    {
130
        $this->surveyId = $surveyId;
131
132
        return $this;
133
    }
134
135
    /**
136
     * Get surveyId.
137
     *
138
     * @return int
139
     */
140
    public function getSurveyId()
141
    {
142
        return $this->surveyId;
143
    }
144
145
    /**
146
     * Set surveyQuestion.
147
     *
148
     * @param string $surveyQuestion
149
     *
150
     * @return CSurveyQuestion
151
     */
152
    public function setSurveyQuestion($surveyQuestion)
153
    {
154
        $this->surveyQuestion = $surveyQuestion;
155
156
        return $this;
157
    }
158
159
    /**
160
     * Get surveyQuestion.
161
     *
162
     * @return string
163
     */
164
    public function getSurveyQuestion()
165
    {
166
        return $this->surveyQuestion;
167
    }
168
169
    /**
170
     * Set surveyQuestionComment.
171
     *
172
     * @param string $surveyQuestionComment
173
     *
174
     * @return CSurveyQuestion
175
     */
176
    public function setSurveyQuestionComment($surveyQuestionComment)
177
    {
178
        $this->surveyQuestionComment = $surveyQuestionComment;
179
180
        return $this;
181
    }
182
183
    /**
184
     * Get surveyQuestionComment.
185
     *
186
     * @return string
187
     */
188
    public function getSurveyQuestionComment()
189
    {
190
        return $this->surveyQuestionComment;
191
    }
192
193
    /**
194
     * Set type.
195
     *
196
     * @param string $type
197
     *
198
     * @return CSurveyQuestion
199
     */
200
    public function setType($type)
201
    {
202
        $this->type = $type;
203
204
        return $this;
205
    }
206
207
    /**
208
     * Get type.
209
     *
210
     * @return string
211
     */
212
    public function getType()
213
    {
214
        return $this->type;
215
    }
216
217
    /**
218
     * Set display.
219
     *
220
     * @param string $display
221
     *
222
     * @return CSurveyQuestion
223
     */
224
    public function setDisplay($display)
225
    {
226
        $this->display = $display;
227
228
        return $this;
229
    }
230
231
    /**
232
     * Get display.
233
     *
234
     * @return string
235
     */
236
    public function getDisplay()
237
    {
238
        return $this->display;
239
    }
240
241
    /**
242
     * Set sort.
243
     *
244
     * @param int $sort
245
     *
246
     * @return CSurveyQuestion
247
     */
248
    public function setSort($sort)
249
    {
250
        $this->sort = $sort;
251
252
        return $this;
253
    }
254
255
    /**
256
     * Get sort.
257
     *
258
     * @return int
259
     */
260
    public function getSort()
261
    {
262
        return $this->sort;
263
    }
264
265
    /**
266
     * Set sharedQuestionId.
267
     *
268
     * @param int $sharedQuestionId
269
     *
270
     * @return CSurveyQuestion
271
     */
272
    public function setSharedQuestionId($sharedQuestionId)
273
    {
274
        $this->sharedQuestionId = $sharedQuestionId;
275
276
        return $this;
277
    }
278
279
    /**
280
     * Get sharedQuestionId.
281
     *
282
     * @return int
283
     */
284
    public function getSharedQuestionId()
285
    {
286
        return $this->sharedQuestionId;
287
    }
288
289
    /**
290
     * Set maxValue.
291
     *
292
     * @param int $maxValue
293
     *
294
     * @return CSurveyQuestion
295
     */
296
    public function setMaxValue($maxValue)
297
    {
298
        $this->maxValue = $maxValue;
299
300
        return $this;
301
    }
302
303
    /**
304
     * Get maxValue.
305
     *
306
     * @return int
307
     */
308
    public function getMaxValue()
309
    {
310
        return $this->maxValue;
311
    }
312
313
    /**
314
     * Set surveyGroupPri.
315
     *
316
     * @param int $surveyGroupPri
317
     *
318
     * @return CSurveyQuestion
319
     */
320
    public function setSurveyGroupPri($surveyGroupPri)
321
    {
322
        $this->surveyGroupPri = $surveyGroupPri;
323
324
        return $this;
325
    }
326
327
    /**
328
     * Get surveyGroupPri.
329
     *
330
     * @return int
331
     */
332
    public function getSurveyGroupPri()
333
    {
334
        return $this->surveyGroupPri;
335
    }
336
337
    /**
338
     * Set surveyGroupSec1.
339
     *
340
     * @param int $surveyGroupSec1
341
     *
342
     * @return CSurveyQuestion
343
     */
344
    public function setSurveyGroupSec1($surveyGroupSec1)
345
    {
346
        $this->surveyGroupSec1 = $surveyGroupSec1;
347
348
        return $this;
349
    }
350
351
    /**
352
     * Get surveyGroupSec1.
353
     *
354
     * @return int
355
     */
356
    public function getSurveyGroupSec1()
357
    {
358
        return $this->surveyGroupSec1;
359
    }
360
361
    /**
362
     * Set surveyGroupSec2.
363
     *
364
     * @param int $surveyGroupSec2
365
     *
366
     * @return CSurveyQuestion
367
     */
368
    public function setSurveyGroupSec2($surveyGroupSec2)
369
    {
370
        $this->surveyGroupSec2 = $surveyGroupSec2;
371
372
        return $this;
373
    }
374
375
    /**
376
     * Get surveyGroupSec2.
377
     *
378
     * @return int
379
     */
380
    public function getSurveyGroupSec2()
381
    {
382
        return $this->surveyGroupSec2;
383
    }
384
385
    /**
386
     * Set questionId.
387
     *
388
     * @param int $questionId
389
     *
390
     * @return CSurveyQuestion
391
     */
392
    public function setQuestionId($questionId)
393
    {
394
        $this->questionId = $questionId;
395
396
        return $this;
397
    }
398
399
    /**
400
     * Get questionId.
401
     *
402
     * @return int
403
     */
404
    public function getQuestionId()
405
    {
406
        return $this->questionId;
407
    }
408
409
    /**
410
     * Set cId.
411
     *
412
     * @param int $cId
413
     *
414
     * @return CSurveyQuestion
415
     */
416
    public function setCId($cId)
417
    {
418
        $this->cId = $cId;
419
420
        return $this;
421
    }
422
423
    /**
424
     * Get cId.
425
     *
426
     * @return int
427
     */
428
    public function getCId()
429
    {
430
        return $this->cId;
431
    }
432
}
433