Completed
Push — master ( ac9b94...2050b8 )
by Julito
11:32
created

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