Passed
Push — master ( 39d3dd...53f3e6 )
by Julito
29:53 queued 08:22
created

Message::getIpAddress()   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
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\TicketBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * Message.
10
 *
11
 * @ORM\Table(name="ticket_message")
12
 * @ORM\Entity
13
 */
14
class Message
15
{
16
    /**
17
     * @var int
18
     *
19
     * @ORM\Column(name="id", type="integer")
20
     * @ORM\Id
21
     * @ORM\GeneratedValue
22
     */
23
    protected $id;
24
25
    /**
26
     * @var string
27
     *
28
     * @ORM\Column(name="subject", type="string", length=255, nullable=true)
29
     */
30
    protected $subject;
31
32
    /**
33
     * @var string
34
     *
35
     * @ORM\Column(name="message", type="text", nullable=true)
36
     */
37
    protected $message;
38
39
    /**
40
     * @var string
41
     *
42
     * @ORM\Column(name="status", type="string", nullable=false)
43
     */
44
    protected $status;
45
46
    /**
47
     * @var string
48
     *
49
     * @ORM\Column(name="ip_address", type="string", nullable=false)
50
     */
51
    protected $ipAddress;
52
53
    /**
54
     * @var Ticket
55
     *
56
     * @ORM\ManyToOne(targetEntity="Chamilo\TicketBundle\Entity\Ticket")
57
     * @ORM\JoinColumn(name="ticket_id", referencedColumnName="id")
58
     */
59
    protected $ticket;
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
     * @return int
91
     */
92
    public function getId()
93
    {
94
        return $this->id;
95
    }
96
97
    /**
98
     * @param int $id
99
     *
100
     * @return Message
101
     */
102
    public function setId($id)
103
    {
104
        $this->id = $id;
105
106
        return $this;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getSubject()
113
    {
114
        return $this->subject;
115
    }
116
117
    /**
118
     * @param string $subject
119
     *
120
     * @return Message
121
     */
122
    public function setSubject($subject)
123
    {
124
        $this->subject = $subject;
125
126
        return $this;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getMessage()
133
    {
134
        return $this->message;
135
    }
136
137
    /**
138
     * @param string $message
139
     *
140
     * @return Message
141
     */
142
    public function setMessage($message)
143
    {
144
        $this->message = $message;
145
146
        return $this;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getStatus()
153
    {
154
        return $this->status;
155
    }
156
157
    /**
158
     * @param string $status
159
     *
160
     * @return Message
161
     */
162
    public function setStatus($status)
163
    {
164
        $this->status = $status;
165
166
        return $this;
167
    }
168
169
    /**
170
     * @return string
171
     */
172
    public function getIpAddress()
173
    {
174
        return $this->ipAddress;
175
    }
176
177
    /**
178
     * @param string $ipAddress
179
     *
180
     * @return Message
181
     */
182
    public function setIpAddress($ipAddress)
183
    {
184
        $this->ipAddress = $ipAddress;
185
186
        return $this;
187
    }
188
189
    /**
190
     * @return Ticket
191
     */
192
    public function getTicket()
193
    {
194
        return $this->ticket;
195
    }
196
197
    /**
198
     * @param Ticket $ticket
199
     *
200
     * @return Message
201
     */
202
    public function setTicket($ticket)
203
    {
204
        $this->ticket = $ticket;
205
206
        return $this;
207
    }
208
209
    /**
210
     * @return int
211
     */
212
    public function getInsertUserId()
213
    {
214
        return $this->insertUserId;
215
    }
216
217
    /**
218
     * @param int $insertUserId
219
     *
220
     * @return Message
221
     */
222
    public function setInsertUserId($insertUserId)
223
    {
224
        $this->insertUserId = $insertUserId;
225
226
        return $this;
227
    }
228
229
    /**
230
     * @return \DateTime
231
     */
232
    public function getInsertDateTime()
233
    {
234
        return $this->insertDateTime;
235
    }
236
237
    /**
238
     * @param \DateTime $insertDateTime
239
     *
240
     * @return Message
241
     */
242
    public function setInsertDateTime($insertDateTime)
243
    {
244
        $this->insertDateTime = $insertDateTime;
245
246
        return $this;
247
    }
248
249
    /**
250
     * @return int
251
     */
252
    public function getLastEditUserId()
253
    {
254
        return $this->lastEditUserId;
255
    }
256
257
    /**
258
     * @param int $lastEditUserId
259
     *
260
     * @return Message
261
     */
262
    public function setLastEditUserId($lastEditUserId)
263
    {
264
        $this->lastEditUserId = $lastEditUserId;
265
266
        return $this;
267
    }
268
269
    /**
270
     * @return \DateTime
271
     */
272
    public function getLastEditDateTime()
273
    {
274
        return $this->lastEditDateTime;
275
    }
276
277
    /**
278
     * @param \DateTime $lastEditDateTime
279
     *
280
     * @return Message
281
     */
282
    public function setLastEditDateTime($lastEditDateTime)
283
    {
284
        $this->lastEditDateTime = $lastEditDateTime;
285
286
        return $this;
287
    }
288
}
289