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="charWalletTransaction", indexes={ |
10
|
|
|
* @ORM\Index(name="transactionDate", columns={"transactionDateTime"}), |
11
|
|
|
* @ORM\Index(name="owner", columns={"ownerID", "accountKey"}), |
12
|
|
|
* @ORM\Index(name="journalTransactionID", columns={"journalTransactionID"}), |
13
|
|
|
* @ORM\Index(name="transactionType", columns={"transactionType"}), |
14
|
|
|
* @ORM\Index(name="typeID", columns={"typeID"})}, uniqueConstraints={ |
15
|
|
|
* @ORM\UniqueConstraint(name="transaction_owner", columns={"transactionId", "ownerId"}) |
16
|
|
|
* }) |
17
|
|
|
*/ |
18
|
|
|
class CharWalletTransaction |
19
|
|
|
{ |
20
|
|
|
/** |
21
|
|
|
* @var integer |
22
|
|
|
* |
23
|
|
|
* @ORM\Id |
24
|
|
|
* @ORM\GeneratedValue |
25
|
|
|
* @ORM\Column(name="ID", type="bigint", options={"unsigned"=true}) |
26
|
|
|
*/ |
27
|
|
|
private $id; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var integer |
31
|
|
|
* |
32
|
|
|
* @ORM\Column(name="transactionID", type="bigint", options={"unsigned"=true}) |
33
|
|
|
*/ |
34
|
|
|
private $transactionId; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var integer |
38
|
|
|
* |
39
|
|
|
* @ORM\Column(name="ownerID", type="bigint", options={"unsigned"=true}) |
40
|
|
|
*/ |
41
|
|
|
private $ownerId; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var integer |
45
|
|
|
* |
46
|
|
|
* @ORM\Column(name="accountKey", type="smallint", options={"unsigned"=true}) |
47
|
|
|
*/ |
48
|
|
|
private $accountKey; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var integer |
52
|
|
|
* |
53
|
|
|
* @ORM\Column(name="clientID", type="bigint", nullable=true, options={"unsigned"=true}) |
54
|
|
|
*/ |
55
|
|
|
private $clientId; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string |
59
|
|
|
* |
60
|
|
|
* @ORM\Column(name="clientName", type="string", length=255, nullable=true) |
61
|
|
|
*/ |
62
|
|
|
private $clientName; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var integer |
66
|
|
|
* |
67
|
|
|
* @ORM\Column(name="journalTransactionID", type="bigint", options={"unsigned"=true}) |
68
|
|
|
*/ |
69
|
|
|
private $journalTransactionId; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var float |
73
|
|
|
* |
74
|
|
|
* @ORM\Column(name="price", type="decimal", precision=17, scale=2) |
75
|
|
|
*/ |
76
|
|
|
private $price; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var integer |
80
|
|
|
* |
81
|
|
|
* @ORM\Column(name="quantity", type="bigint", options={"unsigned"=true}) |
82
|
|
|
*/ |
83
|
|
|
private $quantity; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var integer |
87
|
|
|
* |
88
|
|
|
* @ORM\Column(name="stationID", type="bigint", nullable=true, options={"unsigned"=true}) |
89
|
|
|
*/ |
90
|
|
|
private $stationId; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var string |
94
|
|
|
* |
95
|
|
|
* @ORM\Column(name="stationName", type="string", length=255, nullable=true) |
96
|
|
|
*/ |
97
|
|
|
private $stationName; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @var \DateTime |
101
|
|
|
* |
102
|
|
|
* @ORM\Column(name="transactionDateTime", type="datetime") |
103
|
|
|
*/ |
104
|
|
|
private $transactionDateTime; |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @var string |
108
|
|
|
* |
109
|
|
|
* @ORM\Column(name="transactionFor", type="string", length=255) |
110
|
|
|
*/ |
111
|
|
|
private $transactionFor; |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @var string |
115
|
|
|
* |
116
|
|
|
* @ORM\Column(name="transactionType", type="string", length=255) |
117
|
|
|
*/ |
118
|
|
|
private $transactionType; |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @var integer |
122
|
|
|
* |
123
|
|
|
* @ORM\Column(name="typeID", type="bigint", options={"unsigned"=true}) |
124
|
|
|
*/ |
125
|
|
|
private $typeId; |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @var string |
129
|
|
|
* |
130
|
|
|
* @ORM\Column(name="typeName", type="string", length=255) |
131
|
|
|
*/ |
132
|
|
|
private $typeName; |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @var integer |
136
|
|
|
* |
137
|
|
|
* @ORM\Column(name="clientTypeID", type="bigint", nullable=true, options={"unsigned"=true}) |
138
|
|
|
*/ |
139
|
|
|
private $clientTypeId; |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @param integer $transactionId |
143
|
|
|
*/ |
144
|
|
|
public function __construct($transactionId, $ownerId) |
145
|
|
|
{ |
146
|
|
|
$this->transactionId = $transactionId; |
147
|
|
|
$this->ownerId = $ownerId; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* Get id |
152
|
|
|
* |
153
|
|
|
* @return integer |
154
|
|
|
*/ |
155
|
|
|
public function getId() |
156
|
|
|
{ |
157
|
|
|
return $this->id; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* Get transactionId |
162
|
|
|
* |
163
|
|
|
* @return integer |
164
|
|
|
*/ |
165
|
|
|
public function getTransactionId() |
166
|
|
|
{ |
167
|
|
|
return $this->transactionId; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* Get ownerId |
172
|
|
|
* |
173
|
|
|
* @return integer |
174
|
|
|
*/ |
175
|
|
|
public function getOwnerId() |
176
|
|
|
{ |
177
|
|
|
return $this->ownerId; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* Set accountKey |
182
|
|
|
* |
183
|
|
|
* @param integer $accountKey |
184
|
|
|
* @return CorpWalletTransaction |
185
|
|
|
*/ |
186
|
|
|
public function setAccountKey($accountKey) |
187
|
|
|
{ |
188
|
|
|
$this->accountKey = $accountKey; |
189
|
|
|
|
190
|
|
|
return $this; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* Get accountKey |
195
|
|
|
* |
196
|
|
|
* @return integer |
197
|
|
|
*/ |
198
|
|
|
public function getAccountKey() |
199
|
|
|
{ |
200
|
|
|
return $this->accountKey; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* Set clientId |
205
|
|
|
* |
206
|
|
|
* @param integer $clientId |
207
|
|
|
* @return CorpWalletTransaction |
208
|
|
|
*/ |
209
|
|
|
public function setClientId($clientId) |
210
|
|
|
{ |
211
|
|
|
$this->clientId = $clientId; |
212
|
|
|
|
213
|
|
|
return $this; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* Get clientId |
218
|
|
|
* |
219
|
|
|
* @return integer |
220
|
|
|
*/ |
221
|
|
|
public function getClientId() |
222
|
|
|
{ |
223
|
|
|
return $this->clientId; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* Set clientName |
228
|
|
|
* |
229
|
|
|
* @param string $clientName |
230
|
|
|
* @return CorpWalletTransaction |
231
|
|
|
*/ |
232
|
|
|
public function setClientName($clientName) |
233
|
|
|
{ |
234
|
|
|
$this->clientName = $clientName; |
235
|
|
|
|
236
|
|
|
return $this; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* Get clientName |
241
|
|
|
* |
242
|
|
|
* @return string |
243
|
|
|
*/ |
244
|
|
|
public function getClientName() |
245
|
|
|
{ |
246
|
|
|
return $this->clientName; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* Set journalTransactionId |
251
|
|
|
* |
252
|
|
|
* @param integer $journalTransactionId |
253
|
|
|
* @return CorpWalletTransaction |
254
|
|
|
*/ |
255
|
|
|
public function setJournalTransactionId($journalTransactionId) |
256
|
|
|
{ |
257
|
|
|
$this->journalTransactionId = $journalTransactionId; |
258
|
|
|
|
259
|
|
|
return $this; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
/** |
263
|
|
|
* Get journalTransactionId |
264
|
|
|
* |
265
|
|
|
* @return integer |
266
|
|
|
*/ |
267
|
|
|
public function getJournalTransactionId() |
268
|
|
|
{ |
269
|
|
|
return $this->journalTransactionId; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* Set price |
274
|
|
|
* |
275
|
|
|
* @param float $price |
276
|
|
|
* @return CorpWalletTransaction |
277
|
|
|
*/ |
278
|
|
|
public function setPrice($price) |
279
|
|
|
{ |
280
|
|
|
$this->price = $price; |
281
|
|
|
|
282
|
|
|
return $this; |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* Get price |
287
|
|
|
* |
288
|
|
|
* @return float |
289
|
|
|
*/ |
290
|
|
|
public function getPrice() |
291
|
|
|
{ |
292
|
|
|
return $this->price; |
293
|
|
|
} |
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* Set quantity |
297
|
|
|
* |
298
|
|
|
* @param integer $quantity |
299
|
|
|
* @return CorpWalletTransaction |
300
|
|
|
*/ |
301
|
|
|
public function setQuantity($quantity) |
302
|
|
|
{ |
303
|
|
|
$this->quantity = $quantity; |
304
|
|
|
|
305
|
|
|
return $this; |
306
|
|
|
} |
307
|
|
|
|
308
|
|
|
/** |
309
|
|
|
* Get quantity |
310
|
|
|
* |
311
|
|
|
* @return integer |
312
|
|
|
*/ |
313
|
|
|
public function getQuantity() |
314
|
|
|
{ |
315
|
|
|
return $this->quantity; |
316
|
|
|
} |
317
|
|
|
|
318
|
|
|
/** |
319
|
|
|
* Set stationId |
320
|
|
|
* |
321
|
|
|
* @param integer $stationId |
322
|
|
|
* @return CorpWalletTransaction |
323
|
|
|
*/ |
324
|
|
|
public function setStationId($stationId) |
325
|
|
|
{ |
326
|
|
|
$this->stationId = $stationId; |
327
|
|
|
|
328
|
|
|
return $this; |
329
|
|
|
} |
330
|
|
|
|
331
|
|
|
/** |
332
|
|
|
* Get stationId |
333
|
|
|
* |
334
|
|
|
* @return integer |
335
|
|
|
*/ |
336
|
|
|
public function getStationId() |
337
|
|
|
{ |
338
|
|
|
return $this->stationId; |
339
|
|
|
} |
340
|
|
|
|
341
|
|
|
/** |
342
|
|
|
* Set stationName |
343
|
|
|
* |
344
|
|
|
* @param string $stationName |
345
|
|
|
* @return CorpWalletTransaction |
346
|
|
|
*/ |
347
|
|
|
public function setStationName($stationName) |
348
|
|
|
{ |
349
|
|
|
$this->stationName = $stationName; |
350
|
|
|
|
351
|
|
|
return $this; |
352
|
|
|
} |
353
|
|
|
|
354
|
|
|
/** |
355
|
|
|
* Get stationName |
356
|
|
|
* |
357
|
|
|
* @return string |
358
|
|
|
*/ |
359
|
|
|
public function getStationName() |
360
|
|
|
{ |
361
|
|
|
return $this->stationName; |
362
|
|
|
} |
363
|
|
|
|
364
|
|
|
/** |
365
|
|
|
* Set transactionDateTime |
366
|
|
|
* |
367
|
|
|
* @param \DateTime $transactionDateTime |
368
|
|
|
* @return CorpWalletTransaction |
369
|
|
|
*/ |
370
|
|
|
public function setTransactionDateTime($transactionDateTime) |
371
|
|
|
{ |
372
|
|
|
$this->transactionDateTime = $transactionDateTime; |
373
|
|
|
|
374
|
|
|
return $this; |
375
|
|
|
} |
376
|
|
|
|
377
|
|
|
/** |
378
|
|
|
* Get transactionDateTime |
379
|
|
|
* |
380
|
|
|
* @return \DateTime |
381
|
|
|
*/ |
382
|
|
|
public function getTransactionDateTime() |
383
|
|
|
{ |
384
|
|
|
return $this->transactionDateTime; |
385
|
|
|
} |
386
|
|
|
|
387
|
|
|
/** |
388
|
|
|
* Set transactionFor |
389
|
|
|
* |
390
|
|
|
* @param string $transactionFor |
391
|
|
|
* @return CorpWalletTransaction |
392
|
|
|
*/ |
393
|
|
|
public function setTransactionFor($transactionFor) |
394
|
|
|
{ |
395
|
|
|
$this->transactionFor = $transactionFor; |
396
|
|
|
|
397
|
|
|
return $this; |
398
|
|
|
} |
399
|
|
|
|
400
|
|
|
/** |
401
|
|
|
* Get transactionFor |
402
|
|
|
* |
403
|
|
|
* @return string |
404
|
|
|
*/ |
405
|
|
|
public function getTransactionFor() |
406
|
|
|
{ |
407
|
|
|
return $this->transactionFor; |
408
|
|
|
} |
409
|
|
|
|
410
|
|
|
/** |
411
|
|
|
* Set transactionType |
412
|
|
|
* |
413
|
|
|
* @param string $transactionType |
414
|
|
|
* @return CorpWalletTransaction |
415
|
|
|
*/ |
416
|
|
|
public function setTransactionType($transactionType) |
417
|
|
|
{ |
418
|
|
|
$this->transactionType = $transactionType; |
419
|
|
|
|
420
|
|
|
return $this; |
421
|
|
|
} |
422
|
|
|
|
423
|
|
|
/** |
424
|
|
|
* Get transactionType |
425
|
|
|
* |
426
|
|
|
* @return string |
427
|
|
|
*/ |
428
|
|
|
public function getTransactionType() |
429
|
|
|
{ |
430
|
|
|
return $this->transactionType; |
431
|
|
|
} |
432
|
|
|
|
433
|
|
|
/** |
434
|
|
|
* Set typeId |
435
|
|
|
* |
436
|
|
|
* @param integer $typeId |
437
|
|
|
* @return CorpWalletTransaction |
438
|
|
|
*/ |
439
|
|
|
public function setTypeId($typeId) |
440
|
|
|
{ |
441
|
|
|
$this->typeId = $typeId; |
442
|
|
|
|
443
|
|
|
return $this; |
444
|
|
|
} |
445
|
|
|
|
446
|
|
|
/** |
447
|
|
|
* Get typeId |
448
|
|
|
* |
449
|
|
|
* @return integer |
450
|
|
|
*/ |
451
|
|
|
public function getTypeId() |
452
|
|
|
{ |
453
|
|
|
return $this->typeId; |
454
|
|
|
} |
455
|
|
|
|
456
|
|
|
/** |
457
|
|
|
* Set typeName |
458
|
|
|
* |
459
|
|
|
* @param string $typeName |
460
|
|
|
* @return CorpWalletTransaction |
461
|
|
|
*/ |
462
|
|
|
public function setTypeName($typeName) |
463
|
|
|
{ |
464
|
|
|
$this->typeName = $typeName; |
465
|
|
|
|
466
|
|
|
return $this; |
467
|
|
|
} |
468
|
|
|
|
469
|
|
|
/** |
470
|
|
|
* Get typeName |
471
|
|
|
* |
472
|
|
|
* @return string |
473
|
|
|
*/ |
474
|
|
|
public function getTypeName() |
475
|
|
|
{ |
476
|
|
|
return $this->typeName; |
477
|
|
|
} |
478
|
|
|
|
479
|
|
|
/** |
480
|
|
|
* Set clientTypeId |
481
|
|
|
* |
482
|
|
|
* @param integer $clientTypeId |
483
|
|
|
* @return CorpWalletTransaction |
484
|
|
|
*/ |
485
|
|
|
public function setClientTypeId($clientTypeId) |
486
|
|
|
{ |
487
|
|
|
$this->clientTypeId = $clientTypeId; |
488
|
|
|
|
489
|
|
|
return $this; |
490
|
|
|
} |
491
|
|
|
|
492
|
|
|
/** |
493
|
|
|
* Get clientTypeId |
494
|
|
|
* |
495
|
|
|
* @return integer |
496
|
|
|
*/ |
497
|
|
|
public function getClientTypeId() |
498
|
|
|
{ |
499
|
|
|
return $this->clientTypeId; |
500
|
|
|
} |
501
|
|
|
} |
502
|
|
|
|