Passed
Push — master ( 221f68...d89cd9 )
by Julito
09:13
created

TrackEAttemptRecording::getId()   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\CoreBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
use Gedmo\Mapping\Annotation as Gedmo;
9
10
/**
11
 * TrackEAttemptRecording.
12
 *
13
 * @ORM\Table(name="track_e_attempt_recording",
14
 *     indexes={
15
 *          @ORM\Index(name="exe_id", columns={"exe_id"}),
16
 *          @ORM\Index(name="question_id", columns={"question_id"}),
17
 *          @ORM\Index(name="session_id", columns={"session_id"})
18
 * })
19
 * @ORM\Entity
20
 */
21
class TrackEAttemptRecording
22
{
23
    /**
24
     * @var int
25
     *
26
     * @ORM\Column(name="id", type="integer")
27
     * @ORM\Id
28
     * @ORM\GeneratedValue
29
     */
30
    protected $id;
31
32
    /**
33
     * @var int
34
     *
35
     * @ORM\Column(name="exe_id", type="integer", nullable=false)
36
     */
37
    protected $exeId;
38
39
    /**
40
     * @var int
41
     *
42
     * @ORM\Column(name="question_id", type="integer", nullable=false)
43
     */
44
    protected $questionId;
45
46
    /**
47
     * @var int
48
     *
49
     * @ORM\Column(name="marks", type="integer", nullable=false)
50
     */
51
    protected $marks;
52
53
    /**
54
     * @var \DateTime
55
     * @Gedmo\Timestampable(on="create")
56
     *
57
     * @ORM\Column(name="insert_date", type="datetime", nullable=false)
58
     */
59
    protected $insertDate;
60
61
    /**
62
     * @var int
63
     *
64
     * @ORM\Column(name="author", type="integer", nullable=false)
65
     */
66
    protected $author;
67
68
    /**
69
     * @var string
70
     *
71
     * @ORM\Column(name="teacher_comment", type="text", nullable=false)
72
     */
73
    protected $teacherComment;
74
75
    /**
76
     * @var int
77
     *
78
     * @ORM\Column(name="session_id", type="integer", nullable=false)
79
     */
80
    protected $sessionId;
81
82
    public function __construct()
83
    {
84
        $this->sessionId = 0;
85
    }
86
87
    /**
88
     * Set exeId.
89
     *
90
     * @param int $exeId
91
     *
92
     * @return TrackEAttemptRecording
93
     */
94
    public function setExeId($exeId)
95
    {
96
        $this->exeId = $exeId;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Get exeId.
103
     *
104
     * @return int
105
     */
106
    public function getExeId()
107
    {
108
        return $this->exeId;
109
    }
110
111
    /**
112
     * Set questionId.
113
     *
114
     * @param int $questionId
115
     *
116
     * @return TrackEAttemptRecording
117
     */
118
    public function setQuestionId($questionId)
119
    {
120
        $this->questionId = $questionId;
121
122
        return $this;
123
    }
124
125
    /**
126
     * Get questionId.
127
     *
128
     * @return int
129
     */
130
    public function getQuestionId()
131
    {
132
        return $this->questionId;
133
    }
134
135
    /**
136
     * Set marks.
137
     *
138
     * @param int $marks
139
     *
140
     * @return TrackEAttemptRecording
141
     */
142
    public function setMarks($marks)
143
    {
144
        $this->marks = $marks;
145
146
        return $this;
147
    }
148
149
    /**
150
     * Get marks.
151
     *
152
     * @return int
153
     */
154
    public function getMarks()
155
    {
156
        return $this->marks;
157
    }
158
159
    /**
160
     * Set insertDate.
161
     *
162
     * @param \DateTime $insertDate
163
     *
164
     * @return TrackEAttemptRecording
165
     */
166
    public function setInsertDate($insertDate)
167
    {
168
        $this->insertDate = $insertDate;
169
170
        return $this;
171
    }
172
173
    /**
174
     * Get insertDate.
175
     *
176
     * @return \DateTime
177
     */
178
    public function getInsertDate()
179
    {
180
        return $this->insertDate;
181
    }
182
183
    /**
184
     * Set author.
185
     *
186
     * @param int $author
187
     *
188
     * @return TrackEAttemptRecording
189
     */
190
    public function setAuthor($author)
191
    {
192
        $this->author = $author;
193
194
        return $this;
195
    }
196
197
    /**
198
     * Get author.
199
     *
200
     * @return int
201
     */
202
    public function getAuthor()
203
    {
204
        return $this->author;
205
    }
206
207
    /**
208
     * Set teacherComment.
209
     *
210
     * @param string $teacherComment
211
     *
212
     * @return TrackEAttemptRecording
213
     */
214
    public function setTeacherComment($teacherComment)
215
    {
216
        $this->teacherComment = $teacherComment;
217
218
        return $this;
219
    }
220
221
    /**
222
     * Get teacherComment.
223
     *
224
     * @return string
225
     */
226
    public function getTeacherComment()
227
    {
228
        return $this->teacherComment;
229
    }
230
231
    /**
232
     * Set sessionId.
233
     *
234
     * @param int $sessionId
235
     *
236
     * @return TrackEAttemptRecording
237
     */
238
    public function setSessionId($sessionId)
239
    {
240
        $this->sessionId = $sessionId;
241
242
        return $this;
243
    }
244
245
    /**
246
     * Get sessionId.
247
     *
248
     * @return int
249
     */
250
    public function getSessionId()
251
    {
252
        return $this->sessionId;
253
    }
254
255
    /**
256
     * Get id.
257
     *
258
     * @return int
259
     */
260
    public function getId()
261
    {
262
        return $this->id;
263
    }
264
}
265