CharWalletJournal::getAccountKey()   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 0
Metric Value
c 1
b 0
f 0
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="charWalletJournal", 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"})
16
 * })
17
 */
18
class CharWalletJournal
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
     * @var integer
143
     *
144
     * @ORM\Column(name="taxReceiverID", type="bigint", nullable=true, options={"unsigned"=true})
145
     */
146
    private $taxReceiverId;
147
148
    /**
149
     * @var float
150
     *
151
     * @ORM\Column(name="taxAmount", type="decimal", precision=17, scale=2)
152
     */
153
    private $taxAmount;
154
155
156
    /**
157
     * @param integer $refId
158
     */
159
    public function __construct($refId, $ownerId)
160
    {
161
        $this->refId = $refId;
162
        $this->ownerId = $ownerId;
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 refId
177
     *
178
     * @return integer
179
     */
180
    public function getRefId()
181
    {
182
        return $this->refId;
183
    }
184
185
    /**
186
     * Get ownerId
187
     *
188
     * @return integer
189
     */
190
    public function getOwnerId()
191
    {
192
        return $this->ownerId;
193
    }
194
195
    /**
196
     * Set accountKey
197
     *
198
     * @param integer $accountKey
199
     * @return CharWalletJournal
200
     */
201
    public function setAccountKey($accountKey)
202
    {
203
        $this->accountKey = $accountKey;
204
205
        return $this;
206
    }
207
208
    /**
209
     * Get accountKey
210
     *
211
     * @return integer
212
     */
213
    public function getAccountKey()
214
    {
215
        return $this->accountKey;
216
    }
217
218
    /**
219
     * Set amount
220
     *
221
     * @param float $amount
222
     * @return CharWalletJournal
223
     */
224
    public function setAmount($amount)
225
    {
226
        $this->amount = $amount;
227
228
        return $this;
229
    }
230
231
    /**
232
     * Get amount
233
     *
234
     * @return float
235
     */
236
    public function getAmount()
237
    {
238
        return $this->amount;
239
    }
240
241
    /**
242
     * Set argId1
243
     *
244
     * @param integer $argId1
245
     * @return CharWalletJournal
246
     */
247
    public function setArgId1($argId1)
248
    {
249
        $this->argId1 = $argId1;
250
251
        return $this;
252
    }
253
254
    /**
255
     * Get argId1
256
     *
257
     * @return integer
258
     */
259
    public function getArgId1()
260
    {
261
        return $this->argId1;
262
    }
263
264
    /**
265
     * Set argName1
266
     *
267
     * @param string $argName1
268
     * @return CharWalletJournal
269
     */
270
    public function setArgName1($argName1)
271
    {
272
        $this->argName1 = $argName1;
273
274
        return $this;
275
    }
276
277
    /**
278
     * Get argName1
279
     *
280
     * @return string
281
     */
282
    public function getArgName1()
283
    {
284
        return $this->argName1;
285
    }
286
287
    /**
288
     * Set balance
289
     *
290
     * @param float $balance
291
     * @return CharWalletJournal
292
     */
293
    public function setBalance($balance)
294
    {
295
        $this->balance = $balance;
296
297
        return $this;
298
    }
299
300
    /**
301
     * Get balance
302
     *
303
     * @return float
304
     */
305
    public function getBalance()
306
    {
307
        return $this->balance;
308
    }
309
310
    /**
311
     * Set date
312
     *
313
     * @param \DateTime $date
314
     * @return CharWalletJournal
315
     */
316
    public function setDate($date)
317
    {
318
        $this->date = $date;
319
320
        return $this;
321
    }
322
323
    /**
324
     * Get date
325
     *
326
     * @return \DateTime
327
     */
328
    public function getDate()
329
    {
330
        return $this->date;
331
    }
332
333
    /**
334
     * Set ownerId1
335
     *
336
     * @param integer $ownerId1
337
     * @return CharWalletJournal
338
     */
339
    public function setOwnerId1($ownerId1)
340
    {
341
        $this->ownerId1 = $ownerId1;
342
343
        return $this;
344
    }
345
346
    /**
347
     * Get ownerId1
348
     *
349
     * @return integer
350
     */
351
    public function getOwnerId1()
352
    {
353
        return $this->ownerId1;
354
    }
355
356
    /**
357
     * Set ownerId2
358
     *
359
     * @param integer $ownerId2
360
     * @return CharWalletJournal
361
     */
362
    public function setOwnerId2($ownerId2)
363
    {
364
        $this->ownerId2 = $ownerId2;
365
366
        return $this;
367
    }
368
369
    /**
370
     * Get ownerId2
371
     *
372
     * @return integer
373
     */
374
    public function getOwnerId2()
375
    {
376
        return $this->ownerId2;
377
    }
378
379
    /**
380
     * Set ownerName1
381
     *
382
     * @param string $ownerName1
383
     * @return CharWalletJournal
384
     */
385
    public function setOwnerName1($ownerName1)
386
    {
387
        $this->ownerName1 = $ownerName1;
388
389
        return $this;
390
    }
391
392
    /**
393
     * Get ownerName1
394
     *
395
     * @return string
396
     */
397
    public function getOwnerName1()
398
    {
399
        return $this->ownerName1;
400
    }
401
402
    /**
403
     * Set ownerName2
404
     *
405
     * @param string $ownerName2
406
     * @return CharWalletJournal
407
     */
408
    public function setOwnerName2($ownerName2)
409
    {
410
        $this->ownerName2 = $ownerName2;
411
412
        return $this;
413
    }
414
415
    /**
416
     * Get ownerName2
417
     *
418
     * @return string
419
     */
420
    public function getOwnerName2()
421
    {
422
        return $this->ownerName2;
423
    }
424
425
    /**
426
     * Set reason
427
     *
428
     * @param string $reason
429
     * @return CharWalletJournal
430
     */
431
    public function setReason($reason)
432
    {
433
        $this->reason = $reason;
434
435
        return $this;
436
    }
437
438
    /**
439
     * Get reason
440
     *
441
     * @return string
442
     */
443
    public function getReason()
444
    {
445
        return $this->reason;
446
    }
447
448
    /**
449
     * Set refTypeId
450
     *
451
     * @param integer $refTypeId
452
     * @return CharWalletJournal
453
     */
454
    public function setRefTypeId($refTypeId)
455
    {
456
        $this->refTypeId = $refTypeId;
457
458
        return $this;
459
    }
460
461
    /**
462
     * Get refTypeId
463
     *
464
     * @return integer
465
     */
466
    public function getRefTypeId()
467
    {
468
        return $this->refTypeId;
469
    }
470
471
    /**
472
     * Set owner1TypeId
473
     *
474
     * @param integer $owner1TypeId
475
     * @return CharWalletJournal
476
     */
477
    public function setOwner1TypeId($owner1TypeId)
478
    {
479
        $this->owner1TypeId = $owner1TypeId;
480
481
        return $this;
482
    }
483
484
    /**
485
     * Get owner1TypeId
486
     *
487
     * @return integer
488
     */
489
    public function getOwner1TypeId()
490
    {
491
        return $this->owner1TypeId;
492
    }
493
494
    /**
495
     * Set owner2TypeId
496
     *
497
     * @param integer $owner2TypeId
498
     * @return CharWalletJournal
499
     */
500
    public function setOwner2TypeId($owner2TypeId)
501
    {
502
        $this->owner2TypeId = $owner2TypeId;
503
504
        return $this;
505
    }
506
507
    /**
508
     * Get owner2TypeId
509
     *
510
     * @return integer
511
     */
512
    public function getOwner2TypeId()
513
    {
514
        return $this->owner2TypeId;
515
    }
516
517
    /**
518
     * Set taxReceiverId
519
     *
520
     * @param integer $taxReceiverId
521
     * @return CharWalletJournal
522
     */
523
    public function setTaxReceiverId($taxReceiverId)
524
    {
525
        $this->taxReceiverId = $taxReceiverId;
526
527
        return $this;
528
    }
529
530
    /**
531
     * Get taxReceiverId
532
     *
533
     * @return integer
534
     */
535
    public function getTaxReceiver()
536
    {
537
        return $this->taxReceiverId;
538
    }
539
540
    /**
541
     * Set taxAmount
542
     *
543
     * @param float $taxAmount
544
     * @return CharWalletJournal
545
     */
546
    public function setTaxAmount($taxAmount)
547
    {
548
        $this->taxAmount = $taxAmount;
549
550
        return $this;
551
    }
552
553
    /**
554
     * Get taxAmount
555
     *
556
     * @return float
557
     */
558
    public function getTaxAmount()
559
    {
560
        return $this->taxAmount;
561
    }
562
}
563