Passed
Push — master ( 70e393...45daf5 )
by Julito
09:50
created

GradebookEvaluation::getWeight()   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
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Chamilo\CoreBundle\Traits\CourseTrait;
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * GradebookEvaluation.
11
 *
12
 * @ORM\Table(name="gradebook_evaluation")
13
 * @ORM\Entity
14
 */
15
class GradebookEvaluation
16
{
17
    use CourseTrait;
18
19
    /**
20
     * @var int
21
     *
22
     * @ORM\Column(name="id", type="integer")
23
     * @ORM\Id
24
     * @ORM\GeneratedValue
25
     */
26
    protected $id;
27
28
    /**
29
     * @var string
30
     *
31
     * @ORM\Column(name="name", type="text", nullable=false)
32
     */
33
    protected $name;
34
35
    /**
36
     * @var string
37
     *
38
     * @ORM\Column(name="description", type="text", nullable=true)
39
     */
40
    protected $description;
41
42
    /**
43
     * @var int
44
     *
45
     * @ORM\Column(name="user_id", type="integer", nullable=false)
46
     */
47
    protected $userId;
48
49
    /**
50
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Course", inversedBy="gradebookEvaluations")
51
     * @ORM\JoinColumn(name="c_id", referencedColumnName="id")
52
     */
53
    protected $course;
54
55
    /**
56
     * @var int
57
     *
58
     * @ORM\Column(name="category_id", type="integer", nullable=true)
59
     */
60
    protected $categoryId;
61
62
    /**
63
     * @var \DateTime
64
     *
65
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
66
     */
67
    protected $createdAt;
68
69
    /**
70
     * @var float
71
     *
72
     * @ORM\Column(name="weight", type="float", precision=10, scale=0, nullable=false)
73
     */
74
    protected $weight;
75
76
    /**
77
     * @var float
78
     *
79
     * @ORM\Column(name="max", type="float", precision=10, scale=0, nullable=false)
80
     */
81
    protected $max;
82
83
    /**
84
     * @var int
85
     *
86
     * @ORM\Column(name="visible", type="integer", nullable=false)
87
     */
88
    protected $visible;
89
90
    /**
91
     * @var string
92
     *
93
     * @ORM\Column(name="type", type="string", length=40, nullable=false)
94
     */
95
    protected $type;
96
97
    /**
98
     * @var int
99
     *
100
     * @ORM\Column(name="locked", type="integer", nullable=false)
101
     */
102
    protected $locked;
103
104
    /**
105
     * Set name.
106
     *
107
     * @param string $name
108
     *
109
     * @return GradebookEvaluation
110
     */
111
    public function setName($name)
112
    {
113
        $this->name = $name;
114
115
        return $this;
116
    }
117
118
    /**
119
     * Get name.
120
     *
121
     * @return string
122
     */
123
    public function getName()
124
    {
125
        return $this->name;
126
    }
127
128
    /**
129
     * Set description.
130
     *
131
     * @param string $description
132
     *
133
     * @return GradebookEvaluation
134
     */
135
    public function setDescription($description)
136
    {
137
        $this->description = $description;
138
139
        return $this;
140
    }
141
142
    /**
143
     * Get description.
144
     *
145
     * @return string
146
     */
147
    public function getDescription()
148
    {
149
        return $this->description;
150
    }
151
152
    /**
153
     * Set userId.
154
     *
155
     * @param int $userId
156
     *
157
     * @return GradebookEvaluation
158
     */
159
    public function setUserId($userId)
160
    {
161
        $this->userId = $userId;
162
163
        return $this;
164
    }
165
166
    /**
167
     * Get userId.
168
     *
169
     * @return int
170
     */
171
    public function getUserId()
172
    {
173
        return $this->userId;
174
    }
175
176
    /**
177
     * Set categoryId.
178
     *
179
     * @param int $categoryId
180
     *
181
     * @return GradebookEvaluation
182
     */
183
    public function setCategoryId($categoryId)
184
    {
185
        $this->categoryId = $categoryId;
186
187
        return $this;
188
    }
189
190
    /**
191
     * Get categoryId.
192
     *
193
     * @return int
194
     */
195
    public function getCategoryId()
196
    {
197
        return $this->categoryId;
198
    }
199
200
    /**
201
     * Set createdAt.
202
     *
203
     * @param \DateTime $createdAt
204
     *
205
     * @return GradebookEvaluation
206
     */
207
    public function setCreatedAt($createdAt)
208
    {
209
        $this->createdAt = $createdAt;
210
211
        return $this;
212
    }
213
214
    /**
215
     * Get createdAt.
216
     *
217
     * @return \DateTime
218
     */
219
    public function getCreatedAt()
220
    {
221
        return $this->createdAt;
222
    }
223
224
    /**
225
     * Set weight.
226
     *
227
     * @param float $weight
228
     *
229
     * @return GradebookEvaluation
230
     */
231
    public function setWeight($weight)
232
    {
233
        $this->weight = $weight;
234
235
        return $this;
236
    }
237
238
    /**
239
     * Get weight.
240
     *
241
     * @return float
242
     */
243
    public function getWeight()
244
    {
245
        return $this->weight;
246
    }
247
248
    /**
249
     * Set max.
250
     *
251
     * @param float $max
252
     *
253
     * @return GradebookEvaluation
254
     */
255
    public function setMax($max)
256
    {
257
        $this->max = $max;
258
259
        return $this;
260
    }
261
262
    /**
263
     * Get max.
264
     *
265
     * @return float
266
     */
267
    public function getMax()
268
    {
269
        return $this->max;
270
    }
271
272
    /**
273
     * Set visible.
274
     *
275
     * @param int $visible
276
     *
277
     * @return GradebookEvaluation
278
     */
279
    public function setVisible($visible)
280
    {
281
        $this->visible = $visible;
282
283
        return $this;
284
    }
285
286
    /**
287
     * Get visible.
288
     *
289
     * @return int
290
     */
291
    public function getVisible()
292
    {
293
        return $this->visible;
294
    }
295
296
    /**
297
     * Set type.
298
     *
299
     * @param string $type
300
     *
301
     * @return GradebookEvaluation
302
     */
303
    public function setType($type)
304
    {
305
        $this->type = $type;
306
307
        return $this;
308
    }
309
310
    /**
311
     * Get type.
312
     *
313
     * @return string
314
     */
315
    public function getType()
316
    {
317
        return $this->type;
318
    }
319
320
    /**
321
     * Set locked.
322
     *
323
     * @param int $locked
324
     *
325
     * @return GradebookEvaluation
326
     */
327
    public function setLocked($locked)
328
    {
329
        $this->locked = $locked;
330
331
        return $this;
332
    }
333
334
    /**
335
     * Get locked.
336
     *
337
     * @return int
338
     */
339
    public function getLocked()
340
    {
341
        return $this->locked;
342
    }
343
344
    /**
345
     * Get id.
346
     *
347
     * @return int
348
     */
349
    public function getId()
350
    {
351
        return $this->id;
352
    }
353
}
354