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

TicketMessage::setLastEditDateTime()   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 Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * Message.
11
 *
12
 * @ORM\Table(name="ticket_message")
13
 * @ORM\Entity
14
 */
15
class TicketMessage
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="subject", type="string", length=255, nullable=true)
30
     */
31
    protected $subject;
32
33
    /**
34
     * @var string
35
     *
36
     * @ORM\Column(name="message", type="text", nullable=true)
37
     */
38
    protected $message;
39
40
    /**
41
     * @var string
42
     *
43
     * @ORM\Column(name="status", type="string", nullable=false)
44
     */
45
    protected $status;
46
47
    /**
48
     * @var string
49
     *
50
     * @ORM\Column(name="ip_address", type="string", nullable=false)
51
     */
52
    protected $ipAddress;
53
54
    /**
55
     * @var Ticket
56
     *
57
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Ticket")
58
     * @ORM\JoinColumn(name="ticket_id", referencedColumnName="id")
59
     */
60
    protected $ticket;
61
62
    /**
63
     * @var int
64
     *
65
     * @ORM\Column(name="sys_insert_user_id", type="integer", nullable=false, unique=false)
66
     */
67
    protected $insertUserId;
68
69
    /**
70
     * @var \DateTime
71
     *
72
     * @ORM\Column(name="sys_insert_datetime", type="datetime", nullable=false, unique=false)
73
     */
74
    protected $insertDateTime;
75
76
    /**
77
     * @var int
78
     *
79
     * @ORM\Column(name="sys_lastedit_user_id", type="integer", nullable=true, unique=false)
80
     */
81
    protected $lastEditUserId;
82
83
    /**
84
     * @var \DateTime
85
     *
86
     * @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false)
87
     */
88
    protected $lastEditDateTime;
89
90
    /**
91
     * @return int
92
     */
93
    public function getId()
94
    {
95
        return $this->id;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getSubject()
102
    {
103
        return $this->subject;
104
    }
105
106
    /**
107
     * @param string $subject
108
     *
109
     * @return TicketMessage
110
     */
111
    public function setSubject($subject)
112
    {
113
        $this->subject = $subject;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getMessage()
122
    {
123
        return $this->message;
124
    }
125
126
    /**
127
     * @param string $message
128
     *
129
     * @return TicketMessage
130
     */
131
    public function setMessage($message)
132
    {
133
        $this->message = $message;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @return string
140
     */
141
    public function getStatus()
142
    {
143
        return $this->status;
144
    }
145
146
    /**
147
     * @param string $status
148
     *
149
     * @return TicketMessage
150
     */
151
    public function setStatus($status)
152
    {
153
        $this->status = $status;
154
155
        return $this;
156
    }
157
158
    /**
159
     * @return string
160
     */
161
    public function getIpAddress()
162
    {
163
        return $this->ipAddress;
164
    }
165
166
    /**
167
     * @param string $ipAddress
168
     *
169
     * @return TicketMessage
170
     */
171
    public function setIpAddress($ipAddress)
172
    {
173
        $this->ipAddress = $ipAddress;
174
175
        return $this;
176
    }
177
178
    /**
179
     * @return Ticket
180
     */
181
    public function getTicket()
182
    {
183
        return $this->ticket;
184
    }
185
186
    /**
187
     * @param Ticket $ticket
188
     *
189
     * @return TicketMessage
190
     */
191
    public function setTicket($ticket)
192
    {
193
        $this->ticket = $ticket;
194
195
        return $this;
196
    }
197
198
    /**
199
     * @return int
200
     */
201
    public function getInsertUserId()
202
    {
203
        return $this->insertUserId;
204
    }
205
206
    /**
207
     * @param int $insertUserId
208
     *
209
     * @return TicketMessage
210
     */
211
    public function setInsertUserId($insertUserId)
212
    {
213
        $this->insertUserId = $insertUserId;
214
215
        return $this;
216
    }
217
218
    /**
219
     * @return \DateTime
220
     */
221
    public function getInsertDateTime()
222
    {
223
        return $this->insertDateTime;
224
    }
225
226
    /**
227
     * @param \DateTime $insertDateTime
228
     *
229
     * @return TicketMessage
230
     */
231
    public function setInsertDateTime($insertDateTime)
232
    {
233
        $this->insertDateTime = $insertDateTime;
234
235
        return $this;
236
    }
237
238
    /**
239
     * @return int
240
     */
241
    public function getLastEditUserId()
242
    {
243
        return $this->lastEditUserId;
244
    }
245
246
    /**
247
     * @param int $lastEditUserId
248
     *
249
     * @return TicketMessage
250
     */
251
    public function setLastEditUserId($lastEditUserId)
252
    {
253
        $this->lastEditUserId = $lastEditUserId;
254
255
        return $this;
256
    }
257
258
    /**
259
     * @return \DateTime
260
     */
261
    public function getLastEditDateTime()
262
    {
263
        return $this->lastEditDateTime;
264
    }
265
266
    /**
267
     * @param \DateTime $lastEditDateTime
268
     *
269
     * @return TicketMessage
270
     */
271
    public function setLastEditDateTime($lastEditDateTime)
272
    {
273
        $this->lastEditDateTime = $lastEditDateTime;
274
275
        return $this;
276
    }
277
}
278