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="corpWalletJournal", indexes={ |
10
|
|
|
* @ORM\Index(name="entryDate", columns={"date"}), |
11
|
|
|
* @ORM\Index(name="owner", columns={"ownerID", "accountKey"}), |
12
|
|
|
* @ORM\Index(name="owner1", columns={"ownerID1"}), |
13
|
|
|
* @ORM\Index(name="owner2", columns={"ownerID2"}), |
14
|
|
|
* @ORM\Index(name="refType", columns={"refTypeID"})}, uniqueConstraints={ |
15
|
|
|
* @ORM\UniqueConstraint(name="entry_owner", columns={"refId", "ownerId", "accountKey"}) |
16
|
|
|
* }) |
17
|
|
|
*/ |
18
|
|
|
class CorpWalletJournal |
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="refID", type="bigint", options={"unsigned"=true}) |
33
|
|
|
*/ |
34
|
|
|
private $refId; |
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 float |
52
|
|
|
* |
53
|
|
|
* @ORM\Column(name="amount", type="decimal", precision=17, scale=2) |
54
|
|
|
*/ |
55
|
|
|
private $amount; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var integer |
59
|
|
|
* |
60
|
|
|
* @ORM\Column(name="argID1", type="bigint", nullable=true, options={"unsigned"=true}) |
61
|
|
|
*/ |
62
|
|
|
private $argId1; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string |
66
|
|
|
* |
67
|
|
|
* @ORM\Column(name="argName1", type="string", length=255, nullable=true) |
68
|
|
|
*/ |
69
|
|
|
private $argName1; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var float |
73
|
|
|
* |
74
|
|
|
* @ORM\Column(name="balance", type="decimal", precision=17, scale=2) |
75
|
|
|
*/ |
76
|
|
|
private $balance; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var \DateTime |
80
|
|
|
* |
81
|
|
|
* @ORM\Column(name="date", type="datetime") |
82
|
|
|
*/ |
83
|
|
|
private $date; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var integer |
87
|
|
|
* |
88
|
|
|
* @ORM\Column(name="ownerID1", type="bigint", nullable=true, options={"unsigned"=true}) |
89
|
|
|
*/ |
90
|
|
|
private $ownerId1; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var integer |
94
|
|
|
* |
95
|
|
|
* @ORM\Column(name="ownerID2", type="bigint", nullable=true, options={"unsigned"=true}) |
96
|
|
|
*/ |
97
|
|
|
private $ownerId2; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @var string |
101
|
|
|
* |
102
|
|
|
* @ORM\Column(name="ownerName1", type="string", length=255, nullable=true) |
103
|
|
|
*/ |
104
|
|
|
private $ownerName1; |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @var string |
108
|
|
|
* |
109
|
|
|
* @ORM\Column(name="ownerName2", type="string", length=255, nullable=true) |
110
|
|
|
*/ |
111
|
|
|
private $ownerName2; |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @var string |
115
|
|
|
* |
116
|
|
|
* @ORM\Column(name="reason", type="text", nullable=true) |
117
|
|
|
*/ |
118
|
|
|
private $reason; |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @var integer |
122
|
|
|
* |
123
|
|
|
* @ORM\Column(name="refTypeID", type="smallint", options={"unsigned"=true}) |
124
|
|
|
*/ |
125
|
|
|
private $refTypeId; |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @var integer |
129
|
|
|
* |
130
|
|
|
* @ORM\Column(name="owner1TypeID", type="bigint", nullable=true, options={"unsigned"=true}) |
131
|
|
|
*/ |
132
|
|
|
private $owner1TypeId; |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @var integer |
136
|
|
|
* |
137
|
|
|
* @ORM\Column(name="owner2TypeID", type="bigint", nullable=true, options={"unsigned"=true}) |
138
|
|
|
*/ |
139
|
|
|
private $owner2TypeId; |
140
|
|
|
|
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @param integer $refId |
144
|
|
|
*/ |
145
|
|
|
public function __construct($refId, $ownerId, $accountKey) |
146
|
|
|
{ |
147
|
|
|
$this->refId = $refId; |
148
|
|
|
$this->ownerId = $ownerId; |
149
|
|
|
$this->accountKey = $accountKey; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* Get id |
154
|
|
|
* |
155
|
|
|
* @return integer |
156
|
|
|
*/ |
157
|
|
|
public function getId() |
158
|
|
|
{ |
159
|
|
|
return $this->id; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* Get refid |
164
|
|
|
* |
165
|
|
|
* @return integer |
166
|
|
|
*/ |
167
|
|
|
public function getRefid() |
168
|
|
|
{ |
169
|
|
|
return $this->refId; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* Get ownerId |
174
|
|
|
* |
175
|
|
|
* @return integer |
176
|
|
|
*/ |
177
|
|
|
public function getOwnerId() |
178
|
|
|
{ |
179
|
|
|
return $this->ownerId; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* Get accountKey |
184
|
|
|
* |
185
|
|
|
* @return integer |
186
|
|
|
*/ |
187
|
|
|
public function getAccountKey() |
188
|
|
|
{ |
189
|
|
|
return $this->accountKey; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* Set amount |
194
|
|
|
* |
195
|
|
|
* @param float $amount |
196
|
|
|
* @return CorpWalletJournal |
197
|
|
|
*/ |
198
|
|
|
public function setAmount($amount) |
199
|
|
|
{ |
200
|
|
|
$this->amount = $amount; |
201
|
|
|
|
202
|
|
|
return $this; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* Get amount |
207
|
|
|
* |
208
|
|
|
* @return float |
209
|
|
|
*/ |
210
|
|
|
public function getAmount() |
211
|
|
|
{ |
212
|
|
|
return $this->amount; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* Set argId1 |
217
|
|
|
* |
218
|
|
|
* @param integer $argId1 |
219
|
|
|
* @return CorpWalletJournal |
220
|
|
|
*/ |
221
|
|
|
public function setArgId1($argId1) |
222
|
|
|
{ |
223
|
|
|
$this->argId1 = $argId1; |
224
|
|
|
|
225
|
|
|
return $this; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* Get argId1 |
230
|
|
|
* |
231
|
|
|
* @return integer |
232
|
|
|
*/ |
233
|
|
|
public function getArgId1() |
234
|
|
|
{ |
235
|
|
|
return $this->argId1; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* Set argName1 |
240
|
|
|
* |
241
|
|
|
* @param string $argName1 |
242
|
|
|
* @return CorpWalletJournal |
243
|
|
|
*/ |
244
|
|
|
public function setArgName1($argName1) |
245
|
|
|
{ |
246
|
|
|
$this->argName1 = $argName1; |
247
|
|
|
|
248
|
|
|
return $this; |
249
|
|
|
} |
250
|
|
|
|
251
|
|
|
/** |
252
|
|
|
* Get argName1 |
253
|
|
|
* |
254
|
|
|
* @return string |
255
|
|
|
*/ |
256
|
|
|
public function getArgName1() |
257
|
|
|
{ |
258
|
|
|
return $this->argName1; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
/** |
262
|
|
|
* Set balance |
263
|
|
|
* |
264
|
|
|
* @param float $balance |
265
|
|
|
* @return CorpWalletJournal |
266
|
|
|
*/ |
267
|
|
|
public function setBalance($balance) |
268
|
|
|
{ |
269
|
|
|
$this->balance = $balance; |
270
|
|
|
|
271
|
|
|
return $this; |
272
|
|
|
} |
273
|
|
|
|
274
|
|
|
/** |
275
|
|
|
* Get balance |
276
|
|
|
* |
277
|
|
|
* @return float |
278
|
|
|
*/ |
279
|
|
|
public function getBalance() |
280
|
|
|
{ |
281
|
|
|
return $this->balance; |
282
|
|
|
} |
283
|
|
|
|
284
|
|
|
/** |
285
|
|
|
* Set date |
286
|
|
|
* |
287
|
|
|
* @param \DateTime $date |
288
|
|
|
* @return CorpWalletJournal |
289
|
|
|
*/ |
290
|
|
|
public function setDate($date) |
291
|
|
|
{ |
292
|
|
|
$this->date = $date; |
293
|
|
|
|
294
|
|
|
return $this; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* Get date |
299
|
|
|
* |
300
|
|
|
* @return \DateTime |
301
|
|
|
*/ |
302
|
|
|
public function getDate() |
303
|
|
|
{ |
304
|
|
|
return $this->date; |
305
|
|
|
} |
306
|
|
|
|
307
|
|
|
/** |
308
|
|
|
* Set ownerId1 |
309
|
|
|
* |
310
|
|
|
* @param integer $ownerId1 |
311
|
|
|
* @return CorpWalletJournal |
312
|
|
|
*/ |
313
|
|
|
public function setOwnerId1($ownerId1) |
314
|
|
|
{ |
315
|
|
|
$this->ownerId1 = $ownerId1; |
316
|
|
|
|
317
|
|
|
return $this; |
318
|
|
|
} |
319
|
|
|
|
320
|
|
|
/** |
321
|
|
|
* Get ownerId1 |
322
|
|
|
* |
323
|
|
|
* @return integer |
324
|
|
|
*/ |
325
|
|
|
public function getOwnerId1() |
326
|
|
|
{ |
327
|
|
|
return $this->ownerId1; |
328
|
|
|
} |
329
|
|
|
|
330
|
|
|
/** |
331
|
|
|
* Set ownerId2 |
332
|
|
|
* |
333
|
|
|
* @param integer $ownerId2 |
334
|
|
|
* @return CorpWalletJournal |
335
|
|
|
*/ |
336
|
|
|
public function setOwnerId2($ownerId2) |
337
|
|
|
{ |
338
|
|
|
$this->ownerId2 = $ownerId2; |
339
|
|
|
|
340
|
|
|
return $this; |
341
|
|
|
} |
342
|
|
|
|
343
|
|
|
/** |
344
|
|
|
* Get ownerId2 |
345
|
|
|
* |
346
|
|
|
* @return integer |
347
|
|
|
*/ |
348
|
|
|
public function getOwnerId2() |
349
|
|
|
{ |
350
|
|
|
return $this->ownerId2; |
351
|
|
|
} |
352
|
|
|
|
353
|
|
|
/** |
354
|
|
|
* Set ownerName1 |
355
|
|
|
* |
356
|
|
|
* @param string $ownerName1 |
357
|
|
|
* @return CorpWalletJournal |
358
|
|
|
*/ |
359
|
|
|
public function setOwnerName1($ownerName1) |
360
|
|
|
{ |
361
|
|
|
$this->ownerName1 = $ownerName1; |
362
|
|
|
|
363
|
|
|
return $this; |
364
|
|
|
} |
365
|
|
|
|
366
|
|
|
/** |
367
|
|
|
* Get ownerName1 |
368
|
|
|
* |
369
|
|
|
* @return string |
370
|
|
|
*/ |
371
|
|
|
public function getOwnerName1() |
372
|
|
|
{ |
373
|
|
|
return $this->ownerName1; |
374
|
|
|
} |
375
|
|
|
|
376
|
|
|
/** |
377
|
|
|
* Set ownerName2 |
378
|
|
|
* |
379
|
|
|
* @param string $ownerName2 |
380
|
|
|
* @return CorpWalletJournal |
381
|
|
|
*/ |
382
|
|
|
public function setOwnerName2($ownerName2) |
383
|
|
|
{ |
384
|
|
|
$this->ownerName2 = $ownerName2; |
385
|
|
|
|
386
|
|
|
return $this; |
387
|
|
|
} |
388
|
|
|
|
389
|
|
|
/** |
390
|
|
|
* Get ownerName2 |
391
|
|
|
* |
392
|
|
|
* @return string |
393
|
|
|
*/ |
394
|
|
|
public function getOwnerName2() |
395
|
|
|
{ |
396
|
|
|
return $this->ownerName2; |
397
|
|
|
} |
398
|
|
|
|
399
|
|
|
/** |
400
|
|
|
* Set reason |
401
|
|
|
* |
402
|
|
|
* @param string $reason |
403
|
|
|
* @return CorpWalletJournal |
404
|
|
|
*/ |
405
|
|
|
public function setReason($reason) |
406
|
|
|
{ |
407
|
|
|
$this->reason = $reason; |
408
|
|
|
|
409
|
|
|
return $this; |
410
|
|
|
} |
411
|
|
|
|
412
|
|
|
/** |
413
|
|
|
* Get reason |
414
|
|
|
* |
415
|
|
|
* @return string |
416
|
|
|
*/ |
417
|
|
|
public function getReason() |
418
|
|
|
{ |
419
|
|
|
return $this->reason; |
420
|
|
|
} |
421
|
|
|
|
422
|
|
|
/** |
423
|
|
|
* Set refTypeId |
424
|
|
|
* |
425
|
|
|
* @param integer $refTypeId |
426
|
|
|
* @return CorpWalletJournal |
427
|
|
|
*/ |
428
|
|
|
public function setRefTypeId($refTypeId) |
429
|
|
|
{ |
430
|
|
|
$this->refTypeId = $refTypeId; |
431
|
|
|
|
432
|
|
|
return $this; |
433
|
|
|
} |
434
|
|
|
|
435
|
|
|
/** |
436
|
|
|
* Get refTypeId |
437
|
|
|
* |
438
|
|
|
* @return integer |
439
|
|
|
*/ |
440
|
|
|
public function getRefTypeId() |
441
|
|
|
{ |
442
|
|
|
return $this->refTypeId; |
443
|
|
|
} |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* Set owner1TypeId |
447
|
|
|
* |
448
|
|
|
* @param integer $owner1TypeId |
449
|
|
|
* @return CorpWalletJournal |
450
|
|
|
*/ |
451
|
|
|
public function setOwner1TypeId($owner1TypeId) |
452
|
|
|
{ |
453
|
|
|
$this->owner1TypeId = $owner1TypeId; |
454
|
|
|
|
455
|
|
|
return $this; |
456
|
|
|
} |
457
|
|
|
|
458
|
|
|
/** |
459
|
|
|
* Get owner1TypeId |
460
|
|
|
* |
461
|
|
|
* @return integer |
462
|
|
|
*/ |
463
|
|
|
public function getOwner1TypeId() |
464
|
|
|
{ |
465
|
|
|
return $this->owner1TypeId; |
466
|
|
|
} |
467
|
|
|
|
468
|
|
|
/** |
469
|
|
|
* Set owner2TypeId |
470
|
|
|
* |
471
|
|
|
* @param integer $owner2TypeId |
472
|
|
|
* @return CorpWalletJournal |
473
|
|
|
*/ |
474
|
|
|
public function setOwner2TypeId($owner2TypeId) |
475
|
|
|
{ |
476
|
|
|
$this->owner2TypeId = $owner2TypeId; |
477
|
|
|
|
478
|
|
|
return $this; |
479
|
|
|
} |
480
|
|
|
|
481
|
|
|
/** |
482
|
|
|
* Get owner2TypeId |
483
|
|
|
* |
484
|
|
|
* @return integer |
485
|
|
|
*/ |
486
|
|
|
public function getOwner2TypeId() |
487
|
|
|
{ |
488
|
|
|
return $this->owner2TypeId; |
489
|
|
|
} |
490
|
|
|
} |
491
|
|
|
|