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

CSurveyAnswer::setSurveyId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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