CorpWalletDivision::getId()   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 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Tarioch\EveapiFetcherBundle\Entity;
3
4
use Doctrine\ORM\Mapping as ORM;
5
6
/**
7
 * @ORM\Entity
8
 * @ORM\Table(name="corpWalletDivision")
9
 */
10
class CorpWalletDivision
11
{
12
    /**
13
     * @ORM\Id @ORM\GeneratedValue @ORM\Column(name="id", type="bigint", options={"unsigned"=true})
14
     */
15
    private $id;
16
17
    /**
18
     * @ORM\Column(name="accountKey", type="bigint", options={"unsigned"=true})
19
     */
20
    private $accountKey;
21
22
    /**
23
     * @ORM\Column(name="description", type="string")
24
     */
25
    private $description;
26
27
    /**
28
     * @ORM\ManyToOne(targetEntity="CorpCorporationSheet", inversedBy="walletDivisions")
29
     * @ORM\JoinColumn(name="ownerID", referencedColumnName="corporationID", nullable=false, onDelete="cascade")
30
     */
31
    private $corporation;
32
33
    public function __construct($accountKey, $corporation)
34
    {
35
        $this->accountKey = $accountKey;
36
        $this->corporation = $corporation;
37
    }
38
39
    /**
40
     * Get id
41
     *
42
     * @return integer
43
     */
44
    public function getId()
45
    {
46
        return $this->id;
47
    }
48
49
    /**
50
     * Get accountKey
51
     *
52
     * @return integer
53
     */
54
    public function getAccountKey()
55
    {
56
        return $this->accountKey;
57
    }
58
59
    /**
60
     * Set description
61
     *
62
     * @param string $description
63
     * @return CorpWalletDivision
64
     */
65
    public function setDescription($description)
66
    {
67
        $this->description = $description;
68
69
        return $this;
70
    }
71
72
    /**
73
     * Get description
74
     *
75
     * @return string
76
     */
77
    public function getDescription()
78
    {
79
        return $this->description;
80
    }
81
82
    /**
83
     * Get corporation
84
     *
85
     * @return CorpCorporationSheet
86
     */
87
    public function getCorporation()
88
    {
89
        return $this->corporation;
90
    }
91
}
92