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

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