Completed
Push — master ( c9546d...95f607 )
by Julito
09:41
created

GradebookLinkevalLog::setUserIdLog()   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
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CoreBundle\Entity;
6
7
use Chamilo\CoreBundle\Traits\UserTrait;
8
use Doctrine\ORM\Mapping as ORM;
9
use Gedmo\Mapping\Annotation as Gedmo;
10
11
/**
12
 * GradebookLinkevalLog.
13
 *
14
 * @ORM\Table(name="gradebook_linkeval_log")
15
 * @ORM\Entity
16
 */
17
class GradebookLinkevalLog
18
{
19
    use UserTrait;
20
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="id", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue(strategy="IDENTITY")
27
     */
28
    protected $id;
29
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(name="id_linkeval_log", type="integer", nullable=false)
34
     */
35
    protected $idLinkevalLog;
36
37
    /**
38
     * @var string
39
     *
40
     * @ORM\Column(name="name", type="text", nullable=true)
41
     */
42
    protected $name;
43
44
    /**
45
     * @var string
46
     *
47
     * @ORM\Column(name="description", type="text", nullable=true)
48
     */
49
    protected $description;
50
51
    /**
52
     * @var int
53
     *
54
     * @ORM\Column(name="weight", type="smallint", nullable=true)
55
     */
56
    protected $weight;
57
58
    /**
59
     * @var bool
60
     *
61
     * @ORM\Column(name="visible", type="boolean", nullable=true)
62
     */
63
    protected $visible;
64
65
    /**
66
     * @var string
67
     *
68
     * @ORM\Column(name="type", type="string", length=20, nullable=false)
69
     */
70
    protected $type;
71
72
    /**
73
     * @var User
74
     *
75
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="gradeBookLinkEvalLogs")
76
     * @ORM\JoinColumn(name="user_id_log", referencedColumnName="id", onDelete="CASCADE")
77
     */
78
    protected $user;
79
80
    /**
81
     * @var \DateTime
82
     *
83
     * @Gedmo\Timestampable(on="create")
84
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
85
     */
86
    protected $createdAt;
87
88
    /**
89
     * Set idLinkevalLog.
90
     *
91
     * @param int $idLinkevalLog
92
     *
93
     * @return GradebookLinkevalLog
94
     */
95
    public function setIdLinkevalLog($idLinkevalLog)
96
    {
97
        $this->idLinkevalLog = $idLinkevalLog;
98
99
        return $this;
100
    }
101
102
    /**
103
     * Get idLinkevalLog.
104
     *
105
     * @return int
106
     */
107
    public function getIdLinkevalLog()
108
    {
109
        return $this->idLinkevalLog;
110
    }
111
112
    /**
113
     * Set name.
114
     *
115
     * @param string $name
116
     *
117
     * @return GradebookLinkevalLog
118
     */
119
    public function setName($name)
120
    {
121
        $this->name = $name;
122
123
        return $this;
124
    }
125
126
    /**
127
     * Get name.
128
     *
129
     * @return string
130
     */
131
    public function getName()
132
    {
133
        return $this->name;
134
    }
135
136
    /**
137
     * Set description.
138
     *
139
     * @param string $description
140
     *
141
     * @return GradebookLinkevalLog
142
     */
143
    public function setDescription($description)
144
    {
145
        $this->description = $description;
146
147
        return $this;
148
    }
149
150
    /**
151
     * Get description.
152
     *
153
     * @return string
154
     */
155
    public function getDescription()
156
    {
157
        return $this->description;
158
    }
159
160
    /**
161
     * Set createdAt.
162
     *
163
     * @param \DateTime $createdAt
164
     *
165
     * @return GradebookLinkevalLog
166
     */
167
    public function setCreatedAt($createdAt)
168
    {
169
        $this->createdAt = $createdAt;
170
171
        return $this;
172
    }
173
174
    /**
175
     * Get createdAt.
176
     *
177
     * @return \DateTime
178
     */
179
    public function getCreatedAt()
180
    {
181
        return $this->createdAt;
182
    }
183
184
    /**
185
     * Set weight.
186
     *
187
     * @param int $weight
188
     *
189
     * @return GradebookLinkevalLog
190
     */
191
    public function setWeight($weight)
192
    {
193
        $this->weight = $weight;
194
195
        return $this;
196
    }
197
198
    /**
199
     * Get weight.
200
     *
201
     * @return int
202
     */
203
    public function getWeight()
204
    {
205
        return $this->weight;
206
    }
207
208
    /**
209
     * Set visible.
210
     *
211
     * @param bool $visible
212
     *
213
     * @return GradebookLinkevalLog
214
     */
215
    public function setVisible($visible)
216
    {
217
        $this->visible = $visible;
218
219
        return $this;
220
    }
221
222
    /**
223
     * Get visible.
224
     *
225
     * @return bool
226
     */
227
    public function getVisible()
228
    {
229
        return $this->visible;
230
    }
231
232
    /**
233
     * Set type.
234
     *
235
     * @param string $type
236
     *
237
     * @return GradebookLinkevalLog
238
     */
239
    public function setType($type)
240
    {
241
        $this->type = $type;
242
243
        return $this;
244
    }
245
246
    /**
247
     * Get type.
248
     *
249
     * @return string
250
     */
251
    public function getType()
252
    {
253
        return $this->type;
254
    }
255
256
    /**
257
     * Get id.
258
     *
259
     * @return int
260
     */
261
    public function getId()
262
    {
263
        return $this->id;
264
    }
265
}
266