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

CSurveyAnswer::getCId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 4
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
 * 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 View Code Duplication
class CSurveyAnswer
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

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