Completed
Push — master ( c58ed8...556108 )
by Julito
10:31
created

TicketPriority::getInsertUserId()   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
9
/**
10
 * Priority.
11
 *
12
 * @ORM\Table(name="ticket_priority")
13
 * @ORM\Entity
14
 */
15
class TicketPriority
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue
23
     */
24
    protected $id;
25
26
    /**
27
     * @var string
28
     *
29
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
30
     */
31
    protected $name;
32
33
    /**
34
     * @var string
35
     *
36
     * @ORM\Column(name="code", type="string", length=255, nullable=false)
37
     */
38
    protected $code;
39
40
    /**
41
     * @var string
42
     *
43
     * @ORM\Column(name="description", type="text", nullable=true)
44
     */
45
    protected $description;
46
47
    /**
48
     * @var string
49
     *
50
     * @ORM\Column(name="color", type="string", nullable=false)
51
     */
52
    protected $color;
53
54
    /**
55
     * @var string
56
     *
57
     * @ORM\Column(name="urgency", type="string", nullable=false)
58
     */
59
    protected $urgency;
60
61
    /**
62
     * @var int
63
     *
64
     * @ORM\Column(name="sys_insert_user_id", type="integer", nullable=false, unique=false)
65
     */
66
    protected $insertUserId;
67
68
    /**
69
     * @var \DateTime
70
     *
71
     * @ORM\Column(name="sys_insert_datetime", type="datetime", nullable=false, unique=false)
72
     */
73
    protected $insertDateTime;
74
75
    /**
76
     * @var int
77
     *
78
     * @ORM\Column(name="sys_lastedit_user_id", type="integer", nullable=true, unique=false)
79
     */
80
    protected $lastEditUserId;
81
82
    /**
83
     * @var \DateTime
84
     *
85
     * @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false)
86
     */
87
    protected $lastEditDateTime;
88
89
    /**
90
     * Priority constructor.
91
     */
92
    public function __construct()
93
    {
94
        $this->insertDateTime = new \DateTime();
95
        $this->color = '';
96
        $this->urgency = '';
97
    }
98
99
    /**
100
     * @return int
101
     */
102
    public function getId()
103
    {
104
        return $this->id;
105
    }
106
107
    /**
108
     * @param int $id
109
     *
110
     * @return TicketPriority
111
     */
112
    public function setId($id)
113
    {
114
        $this->id = $id;
115
116
        return $this;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function getName()
123
    {
124
        return $this->name;
125
    }
126
127
    /**
128
     * @param string $name
129
     *
130
     * @return TicketPriority
131
     */
132
    public function setName($name)
133
    {
134
        $this->name = $name;
135
136
        return $this;
137
    }
138
139
    /**
140
     * @return string
141
     */
142
    public function getCode()
143
    {
144
        return $this->code;
145
    }
146
147
    /**
148
     * @param string $code
149
     *
150
     * @return TicketPriority
151
     */
152
    public function setCode($code)
153
    {
154
        $this->code = $code;
155
156
        return $this;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getDescription()
163
    {
164
        return $this->description;
165
    }
166
167
    /**
168
     * @param string $description
169
     *
170
     * @return TicketPriority
171
     */
172
    public function setDescription($description)
173
    {
174
        $this->description = $description;
175
176
        return $this;
177
    }
178
179
    /**
180
     * @return string
181
     */
182
    public function getColor()
183
    {
184
        return $this->color;
185
    }
186
187
    /**
188
     * @param string $color
189
     *
190
     * @return TicketPriority
191
     */
192
    public function setColor($color)
193
    {
194
        $this->color = $color;
195
196
        return $this;
197
    }
198
199
    /**
200
     * @return string
201
     */
202
    public function getUrgency()
203
    {
204
        return $this->urgency;
205
    }
206
207
    /**
208
     * @param string $urgency
209
     *
210
     * @return TicketPriority
211
     */
212
    public function setUrgency($urgency)
213
    {
214
        $this->urgency = $urgency;
215
216
        return $this;
217
    }
218
219
    /**
220
     * @return int
221
     */
222
    public function getInsertUserId()
223
    {
224
        return $this->insertUserId;
225
    }
226
227
    /**
228
     * @param int $insertUserId
229
     *
230
     * @return TicketPriority
231
     */
232
    public function setInsertUserId($insertUserId)
233
    {
234
        $this->insertUserId = $insertUserId;
235
236
        return $this;
237
    }
238
239
    /**
240
     * @return \DateTime
241
     */
242
    public function getInsertDateTime()
243
    {
244
        return $this->insertDateTime;
245
    }
246
247
    /**
248
     * @param \DateTime $insertDateTime
249
     *
250
     * @return TicketPriority
251
     */
252
    public function setInsertDateTime($insertDateTime)
253
    {
254
        $this->insertDateTime = $insertDateTime;
255
256
        return $this;
257
    }
258
259
    /**
260
     * @return int
261
     */
262
    public function getLastEditUserId()
263
    {
264
        return $this->lastEditUserId;
265
    }
266
267
    /**
268
     * @param int $lastEditUserId
269
     *
270
     * @return TicketPriority
271
     */
272
    public function setLastEditUserId($lastEditUserId)
273
    {
274
        $this->lastEditUserId = $lastEditUserId;
275
276
        return $this;
277
    }
278
279
    /**
280
     * @return \DateTime
281
     */
282
    public function getLastEditDateTime()
283
    {
284
        return $this->lastEditDateTime;
285
    }
286
287
    /**
288
     * @param \DateTime $lastEditDateTime
289
     *
290
     * @return TicketPriority
291
     */
292
    public function setLastEditDateTime($lastEditDateTime)
293
    {
294
        $this->lastEditDateTime = $lastEditDateTime;
295
296
        return $this;
297
    }
298
}
299