CharUpcomingEvent::getEventDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Tarioch\EveapiFetcherBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 * @ORM\Table(name="charUpcomingEvent", uniqueConstraints={
10
 *     @ORM\UniqueConstraint(name="event_owner", columns={"eventId", "ownerId"})
11
 * }, indexes={
12
 *     @ORM\Index(name="eventDate", columns={"eventDate"})
13
 * })
14
 */
15
class CharUpcomingEvent
16
{
17
    /**
18
     * @var integer
19
     *
20
     * @ORM\Column(name="ID", type="bigint", options={"unsigned"=true})
21
     * @ORM\Id
22
     * @ORM\GeneratedValue
23
     */
24
    private $id;
25
26
    /**
27
     * @var integer
28
     *
29
     * @ORM\Column(name="eventID", type="bigint", options={"unsigned"=true})
30
     */
31
    private $eventId;
32
33
    /**
34
     * @var integer
35
     *
36
     * @ORM\Column(name="ownerID", type="bigint", options={"unsigned"=true})
37
     */
38
    private $ownerId;
39
40
    /**
41
     * @var integer
42
     *
43
     * @ORM\Column(name="eventOwnerID", type="bigint", options={"unsigned"=true})
44
     */
45
    private $eventOwnerId;
46
47
    /**
48
     * @var string
49
     *
50
     * @ORM\Column(name="eventOwnerName", type="string")
51
     */
52
    private $eventOwnerName;
53
54
    /**
55
     * @var \DateTime
56
     *
57
     * @ORM\Column(name="eventDate", type="datetime")
58
     */
59
    private $eventDate;
60
61
    /**
62
     * @var string
63
     *
64
     * @ORM\Column(name="eventTitle", type="text")
65
     */
66
    private $eventTitle;
67
68
    /**
69
     * @var integer
70
     *
71
     * @ORM\Column(name="duration", type="integer")
72
     */
73
    private $duration;
74
75
    /**
76
     * @var boolean
77
     *
78
     * @ORM\Column(name="importance", type="boolean")
79
     */
80
    private $importance;
81
82
    /**
83
     * @var string
84
     *
85
     * @ORM\Column(name="eventText", type="text")
86
     */
87
    private $eventText;
88
89
    /**
90
     * @var string
91
     *
92
     * @ORM\Column(name="response", type="string")
93
     */
94
    private $response;
95
96
    /**
97
     * @param integer $eventId
98
     * @param integer $ownerId
99
     */
100
    public function __construct($eventId, $ownerId)
101
    {
102
        $this->eventId = $eventId;
103
        $this->ownerId = $ownerId;
104
    }
105
106
    /**
107
     * Get id
108
     *
109
     * @return integer
110
     */
111
    public function getId()
112
    {
113
        return $this->id;
114
    }
115
116
    /**
117
     * Get eventId
118
     *
119
     * @return integer
120
     */
121
    public function getEventId()
122
    {
123
        return $this->eventId;
124
    }
125
126
    /**
127
     * Get ownerId
128
     *
129
     * @return integer
130
     */
131
    public function getOwnerId()
132
    {
133
        return $this->ownerId;
134
    }
135
136
    /**
137
     * Set eventOwnerId
138
     *
139
     * @param integer $eventOwnerId
140
     */
141
    public function setEventOwnerId($eventOwnerId)
142
    {
143
        $this->eventOwnerId = $eventOwnerId;
144
    }
145
146
    /**
147
     * Get eventOwnerId
148
     *
149
     * @return integer
150
     */
151
    public function getEventOwnerId()
152
    {
153
        return $this->eventOwnerId;
154
    }
155
156
157
    /**
158
     * Set eventOwnerName
159
     *
160
     * @param string $eventOwnerName
161
     */
162
    public function setEventOwnerName($eventOwnerName)
163
    {
164
        $this->eventOwnerName = $eventOwnerName;
165
    }
166
167
    /**
168
     * Get eventOwnerName
169
     *
170
     * @return string
171
     */
172
    public function getEventOwnerName()
173
    {
174
        return $this->eventOwnerName;
175
    }
176
177
    /**
178
     * Set eventDate
179
     *
180
     * @param \DateTime $eventDate
181
     */
182
    public function setEventDate($eventDate)
183
    {
184
        $this->eventDate = $eventDate;
185
    }
186
187
    /**
188
     * Get eventDate
189
     *
190
     * @return \DateTime
191
     */
192
    public function getEventDate()
193
    {
194
        return $this->eventDate;
195
    }
196
197
    /**
198
     * Set eventTitle
199
     *
200
     * @param string $eventTitle
201
     */
202
    public function setEventTitle($eventTitle)
203
    {
204
        $this->eventTitle = $eventTitle;
205
    }
206
207
    /**
208
     * Get eventTitle
209
     *
210
     * @return string
211
     */
212
    public function getEventTitle()
213
    {
214
        return $this->eventTitle;
215
    }
216
217
    /**
218
     * Set duration
219
     *
220
     * @param integer $duration
221
     */
222
    public function setDuration($duration)
223
    {
224
        $this->duration = $duration;
225
    }
226
227
    /**
228
     * Get duration
229
     *
230
     * @return integer
231
     */
232
    public function getDuration()
233
    {
234
        return $this->duration;
235
    }
236
237
    /**
238
     * Set importance
239
     *
240
     * @param boolean $importance
241
     */
242
    public function setImportance($importance)
243
    {
244
        $this->importance = $importance;
245
    }
246
247
    /**
248
     * Get importance
249
     *
250
     * @return boolean
251
     */
252
    public function isImportance()
253
    {
254
        return $this->importance;
255
    }
256
257
    /**
258
     * Set eventText
259
     *
260
     * @param string $eventText
261
     */
262
    public function setEventText($eventText)
263
    {
264
        $this->eventText = $eventText;
265
    }
266
267
    /**
268
     * Get eventText
269
     *
270
     * @return string
271
     */
272
    public function getEventText()
273
    {
274
        return $this->eventText;
275
    }
276
277
    /**
278
     * Set response
279
     *
280
     * @param string $response
281
     */
282
    public function setResponse($response)
283
    {
284
        $this->response = $response;
285
    }
286
287
    /**
288
     * Get response
289
     *
290
     * @return string
291
     */
292
    public function getResponse()
293
    {
294
        return $this->response;
295
    }
296
}
297