Test Setup Failed
Push — master ( 6c6bd7...e2bcdd )
by Julito
28:46
created

CSurveyInvitation::getAnsweredAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
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
 * CSurveyInvitation
10
 *
11
 * @ORM\Table(
12
 *  name="c_survey_invitation",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CSurveyInvitation
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="survey_invitation_id", type="integer")
41
     */
42
    private $surveyInvitationId;
43
44
    /**
45
     * @var string
46
     *
47
     * @ORM\Column(name="survey_code", type="string", length=20, nullable=false)
48
     */
49
    private $surveyCode;
50
51
    /**
52
     * @var string
53
     *
54
     * @ORM\Column(name="user", type="string", length=250, nullable=false)
55
     */
56
    private $user;
57
58
    /**
59
     * @var string
60
     *
61
     * @ORM\Column(name="invitation_code", type="string", length=250, nullable=false)
62
     */
63
    private $invitationCode;
64
65
    /**
66
     * @var \DateTime
67
     *
68
     * @ORM\Column(name="invitation_date", type="datetime", nullable=false)
69
     */
70
    private $invitationDate;
71
72
    /**
73
     * @var \DateTime
74
     *
75
     * @ORM\Column(name="reminder_date", type="datetime", nullable=false)
76
     */
77
    private $reminderDate;
78
79
    /**
80
     * @var integer
81
     *
82
     * @ORM\Column(name="answered", type="integer", nullable=false)
83
     */
84
    private $answered;
85
86
    /**
87
     * @var integer
88
     *
89
     * @ORM\Column(name="session_id", type="integer", nullable=false)
90
     */
91
    private $sessionId;
92
93
    /**
94
     * @var integer
95
     *
96
     * @ORM\Column(name="group_id", type="integer", nullable=false)
97
     */
98
    private $groupId;
99
100
    /**
101
     * @var \DateTime
102
     *
103
     * @ORM\Column(name="answered_at", type="datetime", nullable=true)
104
     */
105
    private $answeredAt;
106
107
    /**
108
     * Set surveyCode
109
     *
110
     * @param string $surveyCode
111
     * @return CSurveyInvitation
112
     */
113
    public function setSurveyCode($surveyCode)
114
    {
115
        $this->surveyCode = $surveyCode;
116
117
        return $this;
118
    }
119
120
    /**
121
     * Get surveyCode
122
     *
123
     * @return string
124
     */
125
    public function getSurveyCode()
126
    {
127
        return $this->surveyCode;
128
    }
129
130
    /**
131
     * Set user
132
     *
133
     * @param string $user
134
     * @return CSurveyInvitation
135
     */
136
    public function setUser($user)
137
    {
138
        $this->user = $user;
139
140
        return $this;
141
    }
142
143
    /**
144
     * Get user
145
     *
146
     * @return string
147
     */
148
    public function getUser()
149
    {
150
        return $this->user;
151
    }
152
153
    /**
154
     * Set invitationCode
155
     *
156
     * @param string $invitationCode
157
     * @return CSurveyInvitation
158
     */
159
    public function setInvitationCode($invitationCode)
160
    {
161
        $this->invitationCode = $invitationCode;
162
163
        return $this;
164
    }
165
166
    /**
167
     * Get invitationCode
168
     *
169
     * @return string
170
     */
171
    public function getInvitationCode()
172
    {
173
        return $this->invitationCode;
174
    }
175
176
    /**
177
     * Set invitationDate
178
     *
179
     * @param \DateTime $invitationDate
180
     * @return CSurveyInvitation
181
     */
182
    public function setInvitationDate($invitationDate)
183
    {
184
        $this->invitationDate = $invitationDate;
185
186
        return $this;
187
    }
188
189
    /**
190
     * Get invitationDate
191
     *
192
     * @return \DateTime
193
     */
194
    public function getInvitationDate()
195
    {
196
        return $this->invitationDate;
197
    }
198
199
    /**
200
     * Set reminderDate
201
     *
202
     * @param \DateTime $reminderDate
203
     * @return CSurveyInvitation
204
     */
205
    public function setReminderDate($reminderDate)
206
    {
207
        $this->reminderDate = $reminderDate;
208
209
        return $this;
210
    }
211
212
    /**
213
     * Get reminderDate
214
     *
215
     * @return \DateTime
216
     */
217
    public function getReminderDate()
218
    {
219
        return $this->reminderDate;
220
    }
221
222
    /**
223
     * Set answered
224
     *
225
     * @param integer $answered
226
     * @return CSurveyInvitation
227
     */
228
    public function setAnswered($answered)
229
    {
230
        $this->answered = $answered;
231
232
        return $this;
233
    }
234
235
    /**
236
     * Get answered
237
     *
238
     * @return integer
239
     */
240
    public function getAnswered()
241
    {
242
        return $this->answered;
243
    }
244
245
    /**
246
     * Set sessionId
247
     *
248
     * @param integer $sessionId
249
     * @return CSurveyInvitation
250
     */
251
    public function setSessionId($sessionId)
252
    {
253
        $this->sessionId = $sessionId;
254
255
        return $this;
256
    }
257
258
    /**
259
     * Get sessionId
260
     *
261
     * @return integer
262
     */
263
    public function getSessionId()
264
    {
265
        return $this->sessionId;
266
    }
267
268
    /**
269
     * Set groupId
270
     *
271
     * @param integer $groupId
272
     * @return CSurveyInvitation
273
     */
274
    public function setGroupId($groupId)
275
    {
276
        $this->groupId = $groupId;
277
278
        return $this;
279
    }
280
281
    /**
282
     * Get groupId
283
     *
284
     * @return integer
285
     */
286
    public function getGroupId()
287
    {
288
        return $this->groupId;
289
    }
290
291
    /**
292
     * Set surveyInvitationId
293
     *
294
     * @param integer $surveyInvitationId
295
     * @return CSurveyInvitation
296
     */
297
    public function setSurveyInvitationId($surveyInvitationId)
298
    {
299
        $this->surveyInvitationId = $surveyInvitationId;
300
301
        return $this;
302
    }
303
304
    /**
305
     * Get surveyInvitationId
306
     *
307
     * @return integer
308
     */
309
    public function getSurveyInvitationId()
310
    {
311
        return $this->surveyInvitationId;
312
    }
313
314
    /**
315
     * Set cId
316
     *
317
     * @param integer $cId
318
     * @return CSurveyInvitation
319
     */
320
    public function setCId($cId)
321
    {
322
        $this->cId = $cId;
323
324
        return $this;
325
    }
326
327
    /**
328
     * Get cId
329
     *
330
     * @return integer
331
     */
332
    public function getCId()
333
    {
334
        return $this->cId;
335
    }
336
337
    /**
338
     * @return \DateTime
339
     */
340
    public function getAnsweredAt(): \DateTime
341
    {
342
        return $this->answeredAt;
343
    }
344
345
    /**
346
     * @param \DateTime $answeredAt
347
     * @return CSurveyInvitation
348
     */
349
    public function setAnsweredAt(\DateTime $answeredAt): CSurveyInvitation
350
    {
351
        $this->answeredAt = $answeredAt;
352
353
        return $this;
354
    }
355
}
356