Code Duplication    Length = 221-221 lines in 2 locations

src/Chamilo/CourseBundle/Entity/CSurveyAnswer.php 1 location

@@ 19-239 (lines=221) @@
16
 * )
17
 * @ORM\Entity
18
 */
19
class CSurveyAnswer
20
{
21
    /**
22
     * @var integer
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    private $iid;
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

src/Chamilo/CourseBundle/Entity/CSurveyQuestionOption.php 1 location

@@ 19-239 (lines=221) @@
16
 * )
17
 * @ORM\Entity
18
 */
19
class CSurveyQuestionOption
20
{
21
    /**
22
     * @var integer
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    private $iid;
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="question_option_id", type="integer")
41
     */
42
    private $questionOptionId;
43
44
    /**
45
     * @var integer
46
     *
47
     * @ORM\Column(name="question_id", type="integer", nullable=false)
48
     */
49
    private $questionId;
50
51
    /**
52
     * @var integer
53
     *
54
     * @ORM\Column(name="survey_id", type="integer", nullable=false)
55
     */
56
    private $surveyId;
57
58
    /**
59
     * @var string
60
     *
61
     * @ORM\Column(name="option_text", type="text", nullable=false)
62
     */
63
    private $optionText;
64
65
    /**
66
     * @var integer
67
     *
68
     * @ORM\Column(name="sort", type="integer", nullable=false)
69
     */
70
    private $sort;
71
72
    /**
73
     * @var integer
74
     *
75
     * @ORM\Column(name="value", type="integer", nullable=false)
76
     */
77
    private $value;
78
79
    /**
80
     * Set questionId
81
     *
82
     * @param integer $questionId
83
     * @return CSurveyQuestionOption
84
     */
85
    public function setQuestionId($questionId)
86
    {
87
        $this->questionId = $questionId;
88
89
        return $this;
90
    }
91
92
    /**
93
     * Get questionId
94
     *
95
     * @return integer
96
     */
97
    public function getQuestionId()
98
    {
99
        return $this->questionId;
100
    }
101
102
    /**
103
     * Set surveyId
104
     *
105
     * @param integer $surveyId
106
     * @return CSurveyQuestionOption
107
     */
108
    public function setSurveyId($surveyId)
109
    {
110
        $this->surveyId = $surveyId;
111
112
        return $this;
113
    }
114
115
    /**
116
     * Get surveyId
117
     *
118
     * @return integer
119
     */
120
    public function getSurveyId()
121
    {
122
        return $this->surveyId;
123
    }
124
125
    /**
126
     * Set optionText
127
     *
128
     * @param string $optionText
129
     * @return CSurveyQuestionOption
130
     */
131
    public function setOptionText($optionText)
132
    {
133
        $this->optionText = $optionText;
134
135
        return $this;
136
    }
137
138
    /**
139
     * Get optionText
140
     *
141
     * @return string
142
     */
143
    public function getOptionText()
144
    {
145
        return $this->optionText;
146
    }
147
148
    /**
149
     * Set sort
150
     *
151
     * @param integer $sort
152
     * @return CSurveyQuestionOption
153
     */
154
    public function setSort($sort)
155
    {
156
        $this->sort = $sort;
157
158
        return $this;
159
    }
160
161
    /**
162
     * Get sort
163
     *
164
     * @return integer
165
     */
166
    public function getSort()
167
    {
168
        return $this->sort;
169
    }
170
171
    /**
172
     * Set value
173
     *
174
     * @param integer $value
175
     * @return CSurveyQuestionOption
176
     */
177
    public function setValue($value)
178
    {
179
        $this->value = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * Get value
186
     *
187
     * @return integer
188
     */
189
    public function getValue()
190
    {
191
        return $this->value;
192
    }
193
194
    /**
195
     * Set questionOptionId
196
     *
197
     * @param integer $questionOptionId
198
     * @return CSurveyQuestionOption
199
     */
200
    public function setQuestionOptionId($questionOptionId)
201
    {
202
        $this->questionOptionId = $questionOptionId;
203
204
        return $this;
205
    }
206
207
    /**
208
     * Get questionOptionId
209
     *
210
     * @return integer
211
     */
212
    public function getQuestionOptionId()
213
    {
214
        return $this->questionOptionId;
215
    }
216
217
    /**
218
     * Set cId
219
     *
220
     * @param integer $cId
221
     * @return CSurveyQuestionOption
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