Passed
Push — master ( 190bd7...86c511 )
by Julito
09:39
created

CSurveyQuestionOption::getQuestionId()   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\CourseBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * CSurveyQuestionOption.
10
 *
11
 * @ORM\Table(
12
 *  name="c_survey_question_option",
13
 *  indexes={
14
 *     @ORM\Index(name="course", columns={"c_id"}),
15
 *     @ORM\Index(name="idx_survey_qo_qid", columns={"question_id"})
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20
class CSurveyQuestionOption
21
{
22
    /**
23
     * @var int
24
     *
25
     * @ORM\Column(name="iid", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    protected $iid;
30
31
    /**
32
     * @var int
33
     *
34
     * @ORM\Column(name="c_id", type="integer")
35
     */
36
    protected $cId;
37
38
    /**
39
     * @var int
40
     *
41
     * @ORM\Column(name="question_option_id", type="integer")
42
     */
43
    protected $questionOptionId;
44
45
    /**
46
     * @var int
47
     *
48
     * @ORM\Column(name="question_id", type="integer", nullable=false)
49
     */
50
    protected $questionId;
51
52
    /**
53
     * @var int
54
     *
55
     * @ORM\Column(name="survey_id", type="integer", nullable=false)
56
     */
57
    protected $surveyId;
58
59
    /**
60
     * @var string
61
     *
62
     * @ORM\Column(name="option_text", type="text", nullable=false)
63
     */
64
    protected $optionText;
65
66
    /**
67
     * @var int
68
     *
69
     * @ORM\Column(name="sort", type="integer", nullable=false)
70
     */
71
    protected $sort;
72
73
    /**
74
     * @var int
75
     *
76
     * @ORM\Column(name="value", type="integer", nullable=false)
77
     */
78
    protected $value;
79
80
    /**
81
     * CSurveyQuestionOption constructor.
82
     *
83
     */
84
    public function __construct()
85
    {
86
        $this->questionOptionId = 0;
87
    }
88
89
    /**
90
     * @return int
91
     */
92
    public function getIid(): int
93
    {
94
        return $this->iid;
95
    }
96
97
    /**
98
     * @param int $iid
99
     *
100
     * @return CSurveyQuestionOption
101
     */
102
    public function setIid(int $iid): CSurveyQuestionOption
103
    {
104
        $this->iid = $iid;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Set questionId.
111
     *
112
     * @param int $questionId
113
     *
114
     * @return CSurveyQuestionOption
115
     */
116
    public function setQuestionId($questionId)
117
    {
118
        $this->questionId = $questionId;
119
120
        return $this;
121
    }
122
123
    /**
124
     * Get questionId.
125
     *
126
     * @return int
127
     */
128
    public function getQuestionId()
129
    {
130
        return $this->questionId;
131
    }
132
133
    /**
134
     * Set surveyId.
135
     *
136
     * @param int $surveyId
137
     *
138
     * @return CSurveyQuestionOption
139
     */
140
    public function setSurveyId($surveyId)
141
    {
142
        $this->surveyId = $surveyId;
143
144
        return $this;
145
    }
146
147
    /**
148
     * Get surveyId.
149
     *
150
     * @return int
151
     */
152
    public function getSurveyId()
153
    {
154
        return $this->surveyId;
155
    }
156
157
    /**
158
     * Set optionText.
159
     *
160
     * @param string $optionText
161
     *
162
     * @return CSurveyQuestionOption
163
     */
164
    public function setOptionText($optionText)
165
    {
166
        $this->optionText = $optionText;
167
168
        return $this;
169
    }
170
171
    /**
172
     * Get optionText.
173
     *
174
     * @return string
175
     */
176
    public function getOptionText()
177
    {
178
        return $this->optionText;
179
    }
180
181
    /**
182
     * Set sort.
183
     *
184
     * @param int $sort
185
     *
186
     * @return CSurveyQuestionOption
187
     */
188
    public function setSort($sort)
189
    {
190
        $this->sort = $sort;
191
192
        return $this;
193
    }
194
195
    /**
196
     * Get sort.
197
     *
198
     * @return int
199
     */
200
    public function getSort()
201
    {
202
        return $this->sort;
203
    }
204
205
    /**
206
     * Set value.
207
     *
208
     * @param int $value
209
     *
210
     * @return CSurveyQuestionOption
211
     */
212
    public function setValue($value)
213
    {
214
        $this->value = $value;
215
216
        return $this;
217
    }
218
219
    /**
220
     * Get value.
221
     *
222
     * @return int
223
     */
224
    public function getValue()
225
    {
226
        return $this->value;
227
    }
228
229
    /**
230
     * Set questionOptionId.
231
     *
232
     * @param int $questionOptionId
233
     *
234
     * @return CSurveyQuestionOption
235
     */
236
    public function setQuestionOptionId($questionOptionId)
237
    {
238
        $this->questionOptionId = $questionOptionId;
239
240
        return $this;
241
    }
242
243
    /**
244
     * Get questionOptionId.
245
     *
246
     * @return int
247
     */
248
    public function getQuestionOptionId()
249
    {
250
        return $this->questionOptionId;
251
    }
252
253
    /**
254
     * Set cId.
255
     *
256
     * @param int $cId
257
     *
258
     * @return CSurveyQuestionOption
259
     */
260
    public function setCId($cId)
261
    {
262
        $this->cId = $cId;
263
264
        return $this;
265
    }
266
267
    /**
268
     * Get cId.
269
     *
270
     * @return int
271
     */
272
    public function getCId()
273
    {
274
        return $this->cId;
275
    }
276
}
277