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

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