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

GradebookLink::setVisible()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
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
 * GradebookLink.
11
 *
12
 * @ORM\Table(name="gradebook_link")
13
 * @ORM\Entity
14
 */
15
class GradebookLink
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 int
30
     *
31
     * @ORM\Column(name="type", type="integer", nullable=false)
32
     */
33
    protected $type;
34
35
    /**
36
     * @var int
37
     *
38
     * @ORM\Column(name="ref_id", type="integer", nullable=false)
39
     */
40
    protected $refId;
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="gradebookLinks")
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=false)
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 int
78
     *
79
     * @ORM\Column(name="visible", type="integer", nullable=false)
80
     */
81
    protected $visible;
82
83
    /**
84
     * @var int
85
     *
86
     * @ORM\Column(name="locked", type="integer", nullable=false)
87
     */
88
    protected $locked;
89
90
    /**
91
     * Set type.
92
     *
93
     * @param int $type
94
     *
95
     * @return GradebookLink
96
     */
97
    public function setType($type)
98
    {
99
        $this->type = $type;
100
101
        return $this;
102
    }
103
104
    /**
105
     * Get type.
106
     *
107
     * @return int
108
     */
109
    public function getType()
110
    {
111
        return $this->type;
112
    }
113
114
    /**
115
     * Set refId.
116
     *
117
     * @param int $refId
118
     *
119
     * @return GradebookLink
120
     */
121
    public function setRefId($refId)
122
    {
123
        $this->refId = $refId;
124
125
        return $this;
126
    }
127
128
    /**
129
     * Get refId.
130
     *
131
     * @return int
132
     */
133
    public function getRefId()
134
    {
135
        return $this->refId;
136
    }
137
138
    /**
139
     * Set userId.
140
     *
141
     * @param int $userId
142
     *
143
     * @return GradebookLink
144
     */
145
    public function setUserId($userId)
146
    {
147
        $this->userId = $userId;
148
149
        return $this;
150
    }
151
152
    /**
153
     * Get userId.
154
     *
155
     * @return int
156
     */
157
    public function getUserId()
158
    {
159
        return $this->userId;
160
    }
161
162
    /**
163
     * Set categoryId.
164
     *
165
     * @param int $categoryId
166
     *
167
     * @return GradebookLink
168
     */
169
    public function setCategoryId($categoryId)
170
    {
171
        $this->categoryId = $categoryId;
172
173
        return $this;
174
    }
175
176
    /**
177
     * Get categoryId.
178
     *
179
     * @return int
180
     */
181
    public function getCategoryId()
182
    {
183
        return $this->categoryId;
184
    }
185
186
    /**
187
     * Set createdAt.
188
     *
189
     * @param \DateTime $createdAt
190
     *
191
     * @return GradebookLink
192
     */
193
    public function setCreatedAt($createdAt)
194
    {
195
        $this->createdAt = $createdAt;
196
197
        return $this;
198
    }
199
200
    /**
201
     * Get createdAt.
202
     *
203
     * @return \DateTime
204
     */
205
    public function getCreatedAt()
206
    {
207
        return $this->createdAt;
208
    }
209
210
    /**
211
     * Set weight.
212
     *
213
     * @param float $weight
214
     *
215
     * @return GradebookLink
216
     */
217
    public function setWeight($weight)
218
    {
219
        $this->weight = $weight;
220
221
        return $this;
222
    }
223
224
    /**
225
     * Get weight.
226
     *
227
     * @return float
228
     */
229
    public function getWeight()
230
    {
231
        return $this->weight;
232
    }
233
234
    /**
235
     * Set visible.
236
     *
237
     * @param int $visible
238
     *
239
     * @return GradebookLink
240
     */
241
    public function setVisible($visible)
242
    {
243
        $this->visible = $visible;
244
245
        return $this;
246
    }
247
248
    /**
249
     * Get visible.
250
     *
251
     * @return int
252
     */
253
    public function getVisible()
254
    {
255
        return $this->visible;
256
    }
257
258
    /**
259
     * Set locked.
260
     *
261
     * @param int $locked
262
     *
263
     * @return GradebookLink
264
     */
265
    public function setLocked($locked)
266
    {
267
        $this->locked = $locked;
268
269
        return $this;
270
    }
271
272
    /**
273
     * Get locked.
274
     *
275
     * @return int
276
     */
277
    public function getLocked()
278
    {
279
        return $this->locked;
280
    }
281
282
    /**
283
     * Get id.
284
     *
285
     * @return int
286
     */
287
    public function getId()
288
    {
289
        return $this->id;
290
    }
291
}
292