Test Setup Failed
Branch master (be722e)
by Yannick
75:49 queued 20:48
created

CSurveyQuestion::getMaxValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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 integer
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    private $iid;
0 ignored issues
show
Unused Code introduced by
The property $iid is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

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