CharPlanetaryLink::getLinkLevel()   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="charPlanetaryLink", indexes={
10
 *     @ORM\Index(name="owner", columns={"ownerID"})}, uniqueConstraints={
11
 *     @ORM\UniqueConstraint(name="entry_owner", columns={"planetId", "sourcePinID", "destinationPinID", "ownerId"})
12
 * })
13
 */
14
class CharPlanetaryLink
15
{
16
    /**
17
     * @ORM\Id @ORM\GeneratedValue @ORM\Column(name="ID", type="bigint", options={"unsigned"=true})
18
     */
19
    private $id;
20
21
    /**
22
     * @ORM\Column(name="ownerID", type="bigint", options={"unsigned"=true})
23
     */
24
    private $ownerId;
25
26
    /**
27
     * @ORM\Column(name="planetID", type="bigint", options={"unsigned"=true})
28
     */
29
    private $planetId;
30
31
    /**
32
     * @ORM\Column(name="sourcePinID", type="bigint", options={"unsigned"=true})
33
     */
34
    private $sourcePinId;
35
36
    /**
37
     * @ORM\Column(name="destinationPinID", type="bigint", options={"unsigned"=true})
38
     */
39
    private $destinationPinId;
40
41
42
    /**
43
     * @ORM\Column(name="linkLevel", type="integer", options={"unsigned"=true})
44
     */
45
    private $linkLevel;
46
47
48
    /**
49
     * Get id
50
     *
51
     * @return integer
52
     */
53
    public function getId()
54
    {
55
        return $this->id;
56
    }
57
58
    /**
59
     * Set ownerId
60
     *
61
     * @param integer $ownerId
62
     * @return CharPlanetaryLink
63
     */
64
    public function setOwnerId($ownerId)
65
    {
66
        $this->ownerId = $ownerId;
67
    
68
        return $this;
69
    }
70
71
    /**
72
     * Get ownerId
73
     *
74
     * @return integer
75
     */
76
    public function getOwnerId()
77
    {
78
        return $this->ownerId;
79
    }
80
81
    /**
82
     * Set planetId
83
     *
84
     * @param integer $planetId
85
     * @return CharPlanetaryColony
86
     */
87
    public function setPlanetId($planetId)
88
    {
89
        $this->planetId = $planetId;
90
    
91
        return $this;
92
    }
93
94
    /**
95
     * Get planetId
96
     *
97
     * @return integer
98
     */
99
    public function getPlanetId()
100
    {
101
        return $this->planetId;
102
    }
103
104
    /**
105
     * Set sourcePinId
106
     *
107
     * @param integer $sourcePinId
108
     * @return CharPlanetaryLink
109
     */
110
    public function setSourcePinId($sourcePinId)
111
    {
112
        $this->sourcePinId = $sourcePinId;
113
    
114
        return $this;
115
    }
116
117
    /**
118
     * Get sourcePinId
119
     *
120
     * @return integer
121
     */
122
    public function getSourcePinId()
123
    {
124
        return $this->sourcePinId;
125
    }
126
127
    /**
128
     * Set destinationPinId
129
     *
130
     * @param integer $destinationPinId
131
     * @return CharPlanetaryLink
132
     */
133
    public function setDestinationPinId($destinationPinId)
134
    {
135
        $this->destinationPinId = $destinationPinId;
136
    
137
        return $this;
138
    }
139
140
    /**
141
     * Get destinationPinId
142
     *
143
     * @return integer
144
     */
145
    public function getDestinationPinId()
146
    {
147
        return $this->destinationPinId;
148
    }
149
150
    /**
151
     * Set linkLevel
152
     *
153
     * @param integer $linkLevel
154
     * @return CharPlanetaryLink
155
     */
156
    public function setLinkLevel($linkLevel)
157
    {
158
        $this->linkLevel = $linkLevel;
159
    
160
        return $this;
161
    }
162
163
    /**
164
     * Get linkLevel
165
     *
166
     * @return integer
167
     */
168
    public function getLinkLevel()
169
    {
170
        return $this->linkLevel;
171
    }
172
}
173