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