1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Azine\MailgunWebhooksBundle\Entity; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* MailgunAttachment. |
7
|
|
|
*/ |
8
|
|
|
class MailgunAttachment |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @param MailgunEvent $event |
12
|
|
|
*/ |
13
|
|
|
public function __construct(MailgunEvent $event) |
14
|
|
|
{ |
15
|
|
|
$this->setEvent($event); |
16
|
|
|
} |
17
|
|
|
|
18
|
|
|
/////////////////////////////////////////////////////////////////// |
19
|
|
|
// generated stuff only below this line. |
20
|
|
|
// @codeCoverageIgnoreStart |
21
|
|
|
/////////////////////////////////////////////////////////////////// |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int |
25
|
|
|
*/ |
26
|
|
|
private $id; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var int |
30
|
|
|
*/ |
31
|
|
|
private $eventId; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var int |
35
|
|
|
*/ |
36
|
|
|
private $counter; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
private $content; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
private $name; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
private $type; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var int |
55
|
|
|
*/ |
56
|
|
|
private $size; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var \Azine\MailgunWebhooksBundle\Entity\MailgunEvent |
60
|
|
|
*/ |
61
|
|
|
private $event; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* Get id. |
65
|
|
|
* |
66
|
|
|
* @return int |
67
|
|
|
*/ |
68
|
|
|
public function getId() |
69
|
|
|
{ |
70
|
|
|
return $this->id; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Set eventId. |
75
|
|
|
* |
76
|
|
|
* @param int $eventId |
77
|
|
|
* |
78
|
|
|
* @return MailgunAttachment |
79
|
|
|
*/ |
80
|
|
|
public function setEventId($eventId) |
81
|
|
|
{ |
82
|
|
|
$this->eventId = $eventId; |
83
|
|
|
|
84
|
|
|
return $this; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* Get eventId. |
89
|
|
|
* |
90
|
|
|
* @return int |
91
|
|
|
*/ |
92
|
|
|
public function getEventId() |
93
|
|
|
{ |
94
|
|
|
return $this->eventId; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* Set counter. |
99
|
|
|
* |
100
|
|
|
* @param int $counter |
101
|
|
|
* |
102
|
|
|
* @return MailgunAttachment |
103
|
|
|
*/ |
104
|
|
|
public function setCounter($counter) |
105
|
|
|
{ |
106
|
|
|
$this->counter = $counter; |
107
|
|
|
|
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* Get counter. |
113
|
|
|
* |
114
|
|
|
* @return int |
115
|
|
|
*/ |
116
|
|
|
public function getCounter() |
117
|
|
|
{ |
118
|
|
|
return $this->counter; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* Set content. |
123
|
|
|
* |
124
|
|
|
* @param string $content |
125
|
|
|
* |
126
|
|
|
* @return MailgunAttachment |
127
|
|
|
*/ |
128
|
|
|
public function setContent($content) |
129
|
|
|
{ |
130
|
|
|
$this->content = $content; |
131
|
|
|
|
132
|
|
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* Get content. |
137
|
|
|
* |
138
|
|
|
* @return string |
139
|
|
|
*/ |
140
|
|
|
public function getContent() |
141
|
|
|
{ |
142
|
|
|
return $this->content; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* Set name. |
147
|
|
|
* |
148
|
|
|
* @param string $name |
149
|
|
|
* |
150
|
|
|
* @return MailgunAttachment |
151
|
|
|
*/ |
152
|
|
|
public function setName($name) |
153
|
|
|
{ |
154
|
|
|
$this->name = $name; |
155
|
|
|
|
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* Get name. |
161
|
|
|
* |
162
|
|
|
* @return string |
163
|
|
|
*/ |
164
|
|
|
public function getName() |
165
|
|
|
{ |
166
|
|
|
return $this->name; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* Set type. |
171
|
|
|
* |
172
|
|
|
* @param string $type |
173
|
|
|
* |
174
|
|
|
* @return MailgunAttachment |
175
|
|
|
*/ |
176
|
|
|
public function setType($type) |
177
|
|
|
{ |
178
|
|
|
$this->type = $type; |
179
|
|
|
|
180
|
|
|
return $this; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* Get type. |
185
|
|
|
* |
186
|
|
|
* @return string |
187
|
|
|
*/ |
188
|
|
|
public function getType() |
189
|
|
|
{ |
190
|
|
|
return $this->type; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* Set size. |
195
|
|
|
* |
196
|
|
|
* @param int $size |
197
|
|
|
* |
198
|
|
|
* @return MailgunAttachment |
199
|
|
|
*/ |
200
|
|
|
public function setSize($size) |
201
|
|
|
{ |
202
|
|
|
$this->size = $size; |
203
|
|
|
|
204
|
|
|
return $this; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* Get size. |
209
|
|
|
* |
210
|
|
|
* @return int |
211
|
|
|
*/ |
212
|
|
|
public function getSize() |
213
|
|
|
{ |
214
|
|
|
return $this->size; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* Set event. |
219
|
|
|
* |
220
|
|
|
* @param \Azine\MailgunWebhooksBundle\Entity\MailgunEvent $event |
221
|
|
|
* |
222
|
|
|
* @return MailgunAttachment |
223
|
|
|
*/ |
224
|
|
|
public function setEvent(MailgunEvent $event = null) |
225
|
|
|
{ |
226
|
|
|
$this->event = $event; |
227
|
|
|
|
228
|
|
|
return $this; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* Get event. |
233
|
|
|
* |
234
|
|
|
* @return \Azine\MailgunWebhooksBundle\Entity\MailgunEvent |
235
|
|
|
*/ |
236
|
|
|
public function getEvent() |
237
|
|
|
{ |
238
|
|
|
return $this->event; |
239
|
|
|
} |
240
|
|
|
} |
241
|
|
|
|