Passed
Push — master ( e0f7b0...a8affd )
by Julito
10:09
created

TicketPriority::getName()   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
     * @return string
109
     */
110
    public function getName()
111
    {
112
        return $this->name;
113
    }
114
115
    /**
116
     * @param string $name
117
     *
118
     * @return TicketPriority
119
     */
120
    public function setName($name)
121
    {
122
        $this->name = $name;
123
124
        return $this;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function getCode()
131
    {
132
        return $this->code;
133
    }
134
135
    /**
136
     * @param string $code
137
     *
138
     * @return TicketPriority
139
     */
140
    public function setCode($code)
141
    {
142
        $this->code = $code;
143
144
        return $this;
145
    }
146
147
    /**
148
     * @return string
149
     */
150
    public function getDescription()
151
    {
152
        return $this->description;
153
    }
154
155
    /**
156
     * @param string $description
157
     *
158
     * @return TicketPriority
159
     */
160
    public function setDescription($description)
161
    {
162
        $this->description = $description;
163
164
        return $this;
165
    }
166
167
    /**
168
     * @return string
169
     */
170
    public function getColor()
171
    {
172
        return $this->color;
173
    }
174
175
    /**
176
     * @param string $color
177
     *
178
     * @return TicketPriority
179
     */
180
    public function setColor($color)
181
    {
182
        $this->color = $color;
183
184
        return $this;
185
    }
186
187
    /**
188
     * @return string
189
     */
190
    public function getUrgency()
191
    {
192
        return $this->urgency;
193
    }
194
195
    /**
196
     * @param string $urgency
197
     *
198
     * @return TicketPriority
199
     */
200
    public function setUrgency($urgency)
201
    {
202
        $this->urgency = $urgency;
203
204
        return $this;
205
    }
206
207
    /**
208
     * @return int
209
     */
210
    public function getInsertUserId()
211
    {
212
        return $this->insertUserId;
213
    }
214
215
    /**
216
     * @param int $insertUserId
217
     *
218
     * @return TicketPriority
219
     */
220
    public function setInsertUserId($insertUserId)
221
    {
222
        $this->insertUserId = $insertUserId;
223
224
        return $this;
225
    }
226
227
    /**
228
     * @return \DateTime
229
     */
230
    public function getInsertDateTime()
231
    {
232
        return $this->insertDateTime;
233
    }
234
235
    /**
236
     * @param \DateTime $insertDateTime
237
     *
238
     * @return TicketPriority
239
     */
240
    public function setInsertDateTime($insertDateTime)
241
    {
242
        $this->insertDateTime = $insertDateTime;
243
244
        return $this;
245
    }
246
247
    /**
248
     * @return int
249
     */
250
    public function getLastEditUserId()
251
    {
252
        return $this->lastEditUserId;
253
    }
254
255
    /**
256
     * @param int $lastEditUserId
257
     *
258
     * @return TicketPriority
259
     */
260
    public function setLastEditUserId($lastEditUserId)
261
    {
262
        $this->lastEditUserId = $lastEditUserId;
263
264
        return $this;
265
    }
266
267
    /**
268
     * @return \DateTime
269
     */
270
    public function getLastEditDateTime()
271
    {
272
        return $this->lastEditDateTime;
273
    }
274
275
    /**
276
     * @param \DateTime $lastEditDateTime
277
     *
278
     * @return TicketPriority
279
     */
280
    public function setLastEditDateTime($lastEditDateTime)
281
    {
282
        $this->lastEditDateTime = $lastEditDateTime;
283
284
        return $this;
285
    }
286
}
287