1
|
|
|
<?php |
2
|
|
|
namespace Tarioch\EveapiFetcherBundle\Entity; |
3
|
|
|
|
4
|
|
|
use Doctrine\ORM\Mapping as ORM; |
5
|
|
|
use Doctrine\Common\Collections\ArrayCollection; |
6
|
|
|
use Doctrine\ORM\Mapping\JoinColumn; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* @ORM\Entity |
10
|
|
|
* @ORM\Table(name="corpCorporationSheet") |
11
|
|
|
*/ |
12
|
|
|
class CorpCorporationSheet |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @ORM\Id @ORM\Column(name="corporationID", type="bigint", options={"unsigned"=true}) |
16
|
|
|
*/ |
17
|
|
|
private $corporationId; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @ORM\Column(name="corporationName", type="string") |
21
|
|
|
*/ |
22
|
|
|
private $corporationName; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @ORM\Column(name="ticker", type="string") |
26
|
|
|
*/ |
27
|
|
|
private $ticker; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @ORM\Column(name="ceoID", type="bigint", options={"unsigned"=true}) |
31
|
|
|
*/ |
32
|
|
|
private $ceoId; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @ORM\Column(name="ceoName", type="string") |
36
|
|
|
*/ |
37
|
|
|
private $ceoName; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @ORM\Column(name="stationID", type="bigint", options={"unsigned"=true}) |
41
|
|
|
*/ |
42
|
|
|
private $stationId; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @ORM\Column(name="stationName", type="string") |
46
|
|
|
*/ |
47
|
|
|
private $stationName; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @ORM\Column(name="description", type="text") |
51
|
|
|
*/ |
52
|
|
|
private $description; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @ORM\Column(name="url", type="text", nullable=true) |
56
|
|
|
*/ |
57
|
|
|
private $url; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @ORM\Column(name="allianceID", type="bigint", options={"unsigned"=true}, nullable=true) |
61
|
|
|
*/ |
62
|
|
|
private $allianceId; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @ORM\Column(name="allianceName", type="string", nullable=true) |
66
|
|
|
*/ |
67
|
|
|
private $allianceName; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @ORM\Column(name="taxRate", type="decimal", precision=5, scale=2) |
71
|
|
|
*/ |
72
|
|
|
private $taxRate; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @ORM\Column(name="memberCount", type="bigint", options={"unsigned"=true}) |
76
|
|
|
*/ |
77
|
|
|
private $memberCount; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @ORM\Column(name="memberLimit", type="bigint", options={"unsigned"=true}) |
81
|
|
|
*/ |
82
|
|
|
private $memberLimit; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @ORM\Column(name="shares", type="bigint", options={"unsigned"=true}) |
86
|
|
|
*/ |
87
|
|
|
private $shares; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @ORM\OneToMany(targetEntity="CorpDivision", mappedBy="corporation") |
91
|
|
|
*/ |
92
|
|
|
private $divisions; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @ORM\OneToMany(targetEntity="CorpWalletDivision", mappedBy="corporation") |
96
|
|
|
*/ |
97
|
|
|
private $walletDivisions; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @ORM\OneToOne(targetEntity="CorpLogo", cascade="all") |
101
|
|
|
* @JoinColumn(name="logoId", referencedColumnName="id", onDelete="cascade") |
102
|
|
|
*/ |
103
|
|
|
private $logo; |
104
|
|
|
|
105
|
|
|
public function __construct($corporationId) |
106
|
|
|
{ |
107
|
|
|
$this->corporationId = $corporationId; |
108
|
|
|
$this->divisions = new ArrayCollection(); |
109
|
|
|
$this->walletDivisions = new ArrayCollection(); |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* Get corporationId |
114
|
|
|
* |
115
|
|
|
* @return integer |
116
|
|
|
*/ |
117
|
|
|
public function getCorporationId() |
118
|
|
|
{ |
119
|
|
|
return $this->corporationId; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* Set corporationName |
124
|
|
|
* |
125
|
|
|
* @param string $corporationName |
126
|
|
|
* @return CorpCorporationSheet |
127
|
|
|
*/ |
128
|
|
|
public function setCorporationName($corporationName) |
129
|
|
|
{ |
130
|
|
|
$this->corporationName = $corporationName; |
131
|
|
|
|
132
|
|
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* Get corporationName |
137
|
|
|
* |
138
|
|
|
* @return string |
139
|
|
|
*/ |
140
|
|
|
public function getCorporationName() |
141
|
|
|
{ |
142
|
|
|
return $this->corporationName; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* Set ticker |
147
|
|
|
* |
148
|
|
|
* @param string $ticker |
149
|
|
|
* @return CorpCorporationSheet |
150
|
|
|
*/ |
151
|
|
|
public function setTicker($ticker) |
152
|
|
|
{ |
153
|
|
|
$this->ticker = $ticker; |
154
|
|
|
|
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* Get ticker |
160
|
|
|
* |
161
|
|
|
* @return string |
162
|
|
|
*/ |
163
|
|
|
public function getTicker() |
164
|
|
|
{ |
165
|
|
|
return $this->ticker; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* Set ceoId |
170
|
|
|
* |
171
|
|
|
* @param integer $ceoId |
172
|
|
|
* @return CorpCorporationSheet |
173
|
|
|
*/ |
174
|
|
|
public function setCeoId($ceoId) |
175
|
|
|
{ |
176
|
|
|
$this->ceoId = $ceoId; |
177
|
|
|
|
178
|
|
|
return $this; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* Get ceoId |
183
|
|
|
* |
184
|
|
|
* @return integer |
185
|
|
|
*/ |
186
|
|
|
public function getCeoId() |
187
|
|
|
{ |
188
|
|
|
return $this->ceoId; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* Set ceoName |
193
|
|
|
* |
194
|
|
|
* @param string $ceoName |
195
|
|
|
* @return CorpCorporationSheet |
196
|
|
|
*/ |
197
|
|
|
public function setCeoName($ceoName) |
198
|
|
|
{ |
199
|
|
|
$this->ceoName = $ceoName; |
200
|
|
|
|
201
|
|
|
return $this; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
/** |
205
|
|
|
* Get ceoName |
206
|
|
|
* |
207
|
|
|
* @return string |
208
|
|
|
*/ |
209
|
|
|
public function getCeoName() |
210
|
|
|
{ |
211
|
|
|
return $this->ceoName; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
/** |
215
|
|
|
* Set stationId |
216
|
|
|
* |
217
|
|
|
* @param integer $stationId |
218
|
|
|
* @return CorpCorporationSheet |
219
|
|
|
*/ |
220
|
|
|
public function setStationId($stationId) |
221
|
|
|
{ |
222
|
|
|
$this->stationId = $stationId; |
223
|
|
|
|
224
|
|
|
return $this; |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* Get stationId |
229
|
|
|
* |
230
|
|
|
* @return integer |
231
|
|
|
*/ |
232
|
|
|
public function getStationId() |
233
|
|
|
{ |
234
|
|
|
return $this->stationId; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* Set stationName |
239
|
|
|
* |
240
|
|
|
* @param string $stationName |
241
|
|
|
* @return CorpCorporationSheet |
242
|
|
|
*/ |
243
|
|
|
public function setStationName($stationName) |
244
|
|
|
{ |
245
|
|
|
$this->stationName = $stationName; |
246
|
|
|
|
247
|
|
|
return $this; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* Get stationName |
252
|
|
|
* |
253
|
|
|
* @return string |
254
|
|
|
*/ |
255
|
|
|
public function getStationName() |
256
|
|
|
{ |
257
|
|
|
return $this->stationName; |
258
|
|
|
} |
259
|
|
|
|
260
|
|
|
/** |
261
|
|
|
* Set description |
262
|
|
|
* |
263
|
|
|
* @param string $description |
264
|
|
|
* @return CorpCorporationSheet |
265
|
|
|
*/ |
266
|
|
|
public function setDescription($description) |
267
|
|
|
{ |
268
|
|
|
$this->description = $description; |
269
|
|
|
|
270
|
|
|
return $this; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* Get description |
275
|
|
|
* |
276
|
|
|
* @return string |
277
|
|
|
*/ |
278
|
|
|
public function getDescription() |
279
|
|
|
{ |
280
|
|
|
return $this->description; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* Set url |
285
|
|
|
* |
286
|
|
|
* @param string $url |
287
|
|
|
* @return CorpCorporationSheet |
288
|
|
|
*/ |
289
|
|
|
public function setUrl($url) |
290
|
|
|
{ |
291
|
|
|
$this->url = $url; |
292
|
|
|
|
293
|
|
|
return $this; |
294
|
|
|
} |
295
|
|
|
|
296
|
|
|
/** |
297
|
|
|
* Get url |
298
|
|
|
* |
299
|
|
|
* @return string |
300
|
|
|
*/ |
301
|
|
|
public function getUrl() |
302
|
|
|
{ |
303
|
|
|
return $this->url; |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* Set allianceId |
308
|
|
|
* |
309
|
|
|
* @param integer $allianceId |
310
|
|
|
* @return CorpCorporationSheet |
311
|
|
|
*/ |
312
|
|
|
public function setAllianceId($allianceId) |
313
|
|
|
{ |
314
|
|
|
$this->allianceId = $allianceId; |
315
|
|
|
|
316
|
|
|
return $this; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* Get allianceId |
321
|
|
|
* |
322
|
|
|
* @return integer |
323
|
|
|
*/ |
324
|
|
|
public function getAllianceId() |
325
|
|
|
{ |
326
|
|
|
return $this->allianceId; |
327
|
|
|
} |
328
|
|
|
|
329
|
|
|
/** |
330
|
|
|
* Set allianceName |
331
|
|
|
* |
332
|
|
|
* @param string $allianceName |
333
|
|
|
* @return CorpCorporationSheet |
334
|
|
|
*/ |
335
|
|
|
public function setAllianceName($allianceName) |
336
|
|
|
{ |
337
|
|
|
$this->allianceName = $allianceName; |
338
|
|
|
|
339
|
|
|
return $this; |
340
|
|
|
} |
341
|
|
|
|
342
|
|
|
/** |
343
|
|
|
* Get allianceName |
344
|
|
|
* |
345
|
|
|
* @return string |
346
|
|
|
*/ |
347
|
|
|
public function getAllianceName() |
348
|
|
|
{ |
349
|
|
|
return $this->allianceName; |
350
|
|
|
} |
351
|
|
|
|
352
|
|
|
/** |
353
|
|
|
* Set taxRate |
354
|
|
|
* |
355
|
|
|
* @param float $taxRate |
356
|
|
|
* @return CorpCorporationSheet |
357
|
|
|
*/ |
358
|
|
|
public function setTaxRate($taxRate) |
359
|
|
|
{ |
360
|
|
|
$this->taxRate = $taxRate; |
361
|
|
|
|
362
|
|
|
return $this; |
363
|
|
|
} |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* Get taxRate |
367
|
|
|
* |
368
|
|
|
* @return float |
369
|
|
|
*/ |
370
|
|
|
public function getTaxRate() |
371
|
|
|
{ |
372
|
|
|
return $this->taxRate; |
373
|
|
|
} |
374
|
|
|
|
375
|
|
|
/** |
376
|
|
|
* Set memberCount |
377
|
|
|
* |
378
|
|
|
* @param integer $memberCount |
379
|
|
|
* @return CorpCorporationSheet |
380
|
|
|
*/ |
381
|
|
|
public function setMemberCount($memberCount) |
382
|
|
|
{ |
383
|
|
|
$this->memberCount = $memberCount; |
384
|
|
|
|
385
|
|
|
return $this; |
386
|
|
|
} |
387
|
|
|
|
388
|
|
|
/** |
389
|
|
|
* Get memberCount |
390
|
|
|
* |
391
|
|
|
* @return integer |
392
|
|
|
*/ |
393
|
|
|
public function getMemberCount() |
394
|
|
|
{ |
395
|
|
|
return $this->memberCount; |
396
|
|
|
} |
397
|
|
|
|
398
|
|
|
/** |
399
|
|
|
* Set memberLimit |
400
|
|
|
* |
401
|
|
|
* @param integer $memberLimit |
402
|
|
|
* @return CorpCorporationSheet |
403
|
|
|
*/ |
404
|
|
|
public function setMemberLimit($memberLimit) |
405
|
|
|
{ |
406
|
|
|
$this->memberLimit = $memberLimit; |
407
|
|
|
|
408
|
|
|
return $this; |
409
|
|
|
} |
410
|
|
|
|
411
|
|
|
/** |
412
|
|
|
* Get memberLimit |
413
|
|
|
* |
414
|
|
|
* @return integer |
415
|
|
|
*/ |
416
|
|
|
public function getMemberLimit() |
417
|
|
|
{ |
418
|
|
|
return $this->memberLimit; |
419
|
|
|
} |
420
|
|
|
|
421
|
|
|
/** |
422
|
|
|
* Set shares |
423
|
|
|
* |
424
|
|
|
* @param integer $shares |
425
|
|
|
* @return CorpCorporationSheet |
426
|
|
|
*/ |
427
|
|
|
public function setShares($shares) |
428
|
|
|
{ |
429
|
|
|
$this->shares = $shares; |
430
|
|
|
|
431
|
|
|
return $this; |
432
|
|
|
} |
433
|
|
|
|
434
|
|
|
/** |
435
|
|
|
* Get shares |
436
|
|
|
* |
437
|
|
|
* @return integer |
438
|
|
|
*/ |
439
|
|
|
public function getShares() |
440
|
|
|
{ |
441
|
|
|
return $this->shares; |
442
|
|
|
} |
443
|
|
|
|
444
|
|
|
/** |
445
|
|
|
* Add divisions |
446
|
|
|
* |
447
|
|
|
* @param CorpDivision $division |
448
|
|
|
* @return CorpCorporationSheet |
449
|
|
|
*/ |
450
|
|
|
public function addDivision(CorpDivision $division) |
451
|
|
|
{ |
452
|
|
|
$this->divisions[] = $division; |
453
|
|
|
|
454
|
|
|
return $this; |
455
|
|
|
} |
456
|
|
|
|
457
|
|
|
/** |
458
|
|
|
* Remove divisions |
459
|
|
|
* |
460
|
|
|
* @param CorpDivision $division |
461
|
|
|
*/ |
462
|
|
|
public function removeDivision(CorpDivision $division) |
463
|
|
|
{ |
464
|
|
|
$this->divisions->removeElement($division); |
465
|
|
|
} |
466
|
|
|
|
467
|
|
|
/** |
468
|
|
|
* Get divisions |
469
|
|
|
* |
470
|
|
|
* @return \Doctrine\Common\Collections\Collection |
471
|
|
|
*/ |
472
|
|
|
public function getDivisions() |
473
|
|
|
{ |
474
|
|
|
return $this->divisions; |
475
|
|
|
} |
476
|
|
|
|
477
|
|
|
/** |
478
|
|
|
* Add walletDivisions |
479
|
|
|
* |
480
|
|
|
* @param CorpWalletDivision $walletDivision |
481
|
|
|
* @return CorpCorporationSheet |
482
|
|
|
*/ |
483
|
|
|
public function addWalletDivision(CorpWalletDivision $walletDivision) |
484
|
|
|
{ |
485
|
|
|
$this->walletDivisions[] = $walletDivision; |
486
|
|
|
|
487
|
|
|
return $this; |
488
|
|
|
} |
489
|
|
|
|
490
|
|
|
/** |
491
|
|
|
* Remove walletDivisions |
492
|
|
|
* |
493
|
|
|
* @param \Tarioch\EveapiFetcherBundle\Entity\CorpWalletDivision $walletDivision |
494
|
|
|
*/ |
495
|
|
|
public function removeWalletDivision(CorpWalletDivision $walletDivision) |
496
|
|
|
{ |
497
|
|
|
$this->walletDivisions->removeElement($walletDivision); |
498
|
|
|
} |
499
|
|
|
|
500
|
|
|
/** |
501
|
|
|
* Get walletDivisions |
502
|
|
|
* |
503
|
|
|
* @return \Doctrine\Common\Collections\Collection |
504
|
|
|
*/ |
505
|
|
|
public function getWalletDivisions() |
506
|
|
|
{ |
507
|
|
|
return $this->walletDivisions; |
508
|
|
|
} |
509
|
|
|
|
510
|
|
|
/** |
511
|
|
|
* Set logo |
512
|
|
|
* |
513
|
|
|
* @param CorpLogo $logo |
514
|
|
|
* @return CorpCorporationSheet |
515
|
|
|
*/ |
516
|
|
|
public function setLogo(CorpLogo $logo) |
517
|
|
|
{ |
518
|
|
|
$this->logo = $logo; |
519
|
|
|
|
520
|
|
|
return $this; |
521
|
|
|
} |
522
|
|
|
|
523
|
|
|
/** |
524
|
|
|
* Get logo |
525
|
|
|
* |
526
|
|
|
* @return CorpLogo |
527
|
|
|
*/ |
528
|
|
|
public function getLogo() |
529
|
|
|
{ |
530
|
|
|
return $this->logo; |
531
|
|
|
} |
532
|
|
|
} |
533
|
|
|
|