Completed
Push — master ( de3d4b...d67c73 )
by Julito
30:09 queued 21:04
created

TrackEExerciseConfirmation::setCourseId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * Class TrackEExerciseConfirmation.
11
 *
12
 * @ORM\Table(name="track_e_exercise_confirmation")
13
 * @ORM\Entity()
14
 */
15
class TrackEExerciseConfirmation
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue(strategy="IDENTITY")
23
     */
24
    protected $id;
25
26
    /**
27
     * @var int
28
     *
29
     * @ORM\Column(name="user_id", type="integer")
30
     */
31
    private $userId;
32
33
    /**
34
     * @var int
35
     *
36
     * @ORM\Column(name="course_id", type="integer")
37
     */
38
    private $courseId;
39
40
    /**
41
     * @var int
42
     *
43
     * @ORM\Column(name="attempt_id", type="integer")
44
     */
45
    private $attemptId;
46
47
    /**
48
     * @var int
49
     *
50
     * @ORM\Column(name="quiz_id", type="integer")
51
     */
52
    private $quizId;
53
54
    /**
55
     * @var int
56
     *
57
     * @ORM\Column(name="session_id", type="integer")
58
     */
59
    private $sessionId;
60
61
    /**
62
     * @var bool
63
     *
64
     * @ORM\Column(name="confirmed", type="boolean", options={"default": false})
65
     */
66
    private $confirmed;
67
68
    /**
69
     * @var int
70
     *
71
     * @ORM\Column(name="questions_count", type="integer")
72
     */
73
    private $questionsCount;
74
75
    /**
76
     * @var int
77
     *
78
     * @ORM\Column(name="saved_answers_count", type="integer")
79
     */
80
    private $savedAnswersCount;
81
82
    /**
83
     * @var \DateTime
84
     *
85
     * @ORM\Column(name="created_at", type="datetime")
86
     */
87
    private $createdAt;
88
89
    /**
90
     * @var \DateTime
91
     *
92
     * @ORM\Column(name="updated_at", type="datetime", nullable=true)
93
     */
94
    private $updatedAt;
95
96
    /**
97
     * TrackEExerciseConfirmation constructor.
98
     */
99
    public function __construct()
100
    {
101
        $this->confirmed = false;
102
    }
103
104
    /**
105
     * @return int
106
     */
107
    public function getId()
108
    {
109
        return $this->id;
110
    }
111
112
    /**
113
     * @return int
114
     */
115
    public function getUserId()
116
    {
117
        return $this->userId;
118
    }
119
120
    /**
121
     * @param int $userId
122
     *
123
     * @return TrackEExerciseConfirmation
124
     */
125
    public function setUserId($userId)
126
    {
127
        $this->userId = $userId;
128
129
        return $this;
130
    }
131
132
    /**
133
     * @return int
134
     */
135
    public function getCourseId()
136
    {
137
        return $this->courseId;
138
    }
139
140
    /**
141
     * @param int $courseId
142
     *
143
     * @return TrackEExerciseConfirmation
144
     */
145
    public function setCourseId($courseId)
146
    {
147
        $this->courseId = $courseId;
148
149
        return $this;
150
    }
151
152
    /**
153
     * @return int
154
     */
155
    public function getAttemptId()
156
    {
157
        return $this->attemptId;
158
    }
159
160
    /**
161
     * @param int $attemptId
162
     *
163
     * @return TrackEExerciseConfirmation
164
     */
165
    public function setAttemptId($attemptId)
166
    {
167
        $this->attemptId = $attemptId;
168
169
        return $this;
170
    }
171
172
    /**
173
     * @return int
174
     */
175
    public function getQuizId()
176
    {
177
        return $this->quizId;
178
    }
179
180
    /**
181
     * @param int $quizId
182
     *
183
     * @return TrackEExerciseConfirmation
184
     */
185
    public function setQuizId($quizId)
186
    {
187
        $this->quizId = $quizId;
188
189
        return $this;
190
    }
191
192
    /**
193
     * @return int
194
     */
195
    public function getSessionId()
196
    {
197
        return $this->sessionId;
198
    }
199
200
    /**
201
     * @param int $sessionId
202
     *
203
     * @return TrackEExerciseConfirmation
204
     */
205
    public function setSessionId($sessionId)
206
    {
207
        $this->sessionId = $sessionId;
208
209
        return $this;
210
    }
211
212
    /**
213
     * @return bool
214
     */
215
    public function isConfirmed()
216
    {
217
        return $this->confirmed;
218
    }
219
220
    /**
221
     * @param bool $confirmed
222
     *
223
     * @return TrackEExerciseConfirmation
224
     */
225
    public function setConfirmed($confirmed)
226
    {
227
        $this->confirmed = $confirmed;
228
229
        return $this;
230
    }
231
232
    /**
233
     * @return int
234
     */
235
    public function getQuestionsCount()
236
    {
237
        return $this->questionsCount;
238
    }
239
240
    /**
241
     * @param int $questionsCount
242
     *
243
     * @return TrackEExerciseConfirmation
244
     */
245
    public function setQuestionsCount($questionsCount)
246
    {
247
        $this->questionsCount = $questionsCount;
248
249
        return $this;
250
    }
251
252
    /**
253
     * @return int
254
     */
255
    public function getSavedAnswersCount()
256
    {
257
        return $this->savedAnswersCount;
258
    }
259
260
    /**
261
     * @param int $savedAnswersCount
262
     *
263
     * @return TrackEExerciseConfirmation
264
     */
265
    public function setSavedAnswersCount($savedAnswersCount)
266
    {
267
        $this->savedAnswersCount = $savedAnswersCount;
268
269
        return $this;
270
    }
271
272
    /**
273
     * @return \DateTime
274
     */
275
    public function getCreatedAt()
276
    {
277
        return $this->createdAt;
278
    }
279
280
    /**
281
     * @param \DateTime $createdAt
282
     *
283
     * @return TrackEExerciseConfirmation
284
     */
285
    public function setCreatedAt($createdAt)
286
    {
287
        $this->createdAt = $createdAt;
288
289
        return $this;
290
    }
291
292
    /**
293
     * @return \DateTime
294
     */
295
    public function getUpdatedAt()
296
    {
297
        return $this->updatedAt;
298
    }
299
300
    /**
301
     * @param \DateTime $updatedAt
302
     *
303
     * @return TrackEExerciseConfirmation
304
     */
305
    public function setUpdatedAt($updatedAt)
306
    {
307
        $this->updatedAt = $updatedAt;
308
309
        return $this;
310
    }
311
}
312