CharSkill::getSkillpoints()   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
namespace Tarioch\EveapiFetcherBundle\Entity;
3
4
use Doctrine\ORM\Mapping as ORM;
5
6
/**
7
 * @ORM\Entity
8
 * @ORM\Table(name="charSkill")
9
 */
10
class CharSkill
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="level", type="smallint", options={"unsigned"=true})
19
     */
20
    private $level;
21
22
    /**
23
     * @ORM\Column(name="skillpoints", type="bigint", options={"unsigned"=true})
24
     */
25
    private $skillpoints;
26
27
    /**
28
     * @ORM\Column(name="typeID", type="bigint", options={"unsigned"=true})
29
     */
30
    private $typeId;
31
32
    /**
33
     * @ORM\Column(name="published", type="boolean")
34
     */
35
    private $published;
36
37
    /**
38
     * @ORM\ManyToOne(targetEntity="CharCharacterSheet", inversedBy="skills")
39
     * @ORM\JoinColumn(name="ownerID", referencedColumnName="characterID", nullable=false, onDelete="cascade")
40
     */
41
    private $character;
42
43
    public function __construct(CharCharacterSheet $character)
44
    {
45
        $this->character = $character;
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 level
60
     *
61
     * @param integer $level
62
     * @return CharSkill
63
     */
64
    public function setLevel($level)
65
    {
66
        $this->level = $level;
67
68
        return $this;
69
    }
70
71
    /**
72
     * Get level
73
     *
74
     * @return integer
75
     */
76
    public function getLevel()
77
    {
78
        return $this->level;
79
    }
80
81
    /**
82
     * Set skillpoints
83
     *
84
     * @param integer $skillpoints
85
     * @return CharSkill
86
     */
87
    public function setSkillpoints($skillpoints)
88
    {
89
        $this->skillpoints = $skillpoints;
90
91
        return $this;
92
    }
93
94
    /**
95
     * Get skillpoints
96
     *
97
     * @return integer
98
     */
99
    public function getSkillpoints()
100
    {
101
        return $this->skillpoints;
102
    }
103
104
    /**
105
     * Set typeId
106
     *
107
     * @param integer $typeId
108
     * @return CharSkill
109
     */
110
    public function setTypeId($typeId)
111
    {
112
        $this->typeId = $typeId;
113
114
        return $this;
115
    }
116
117
    /**
118
     * Get typeId
119
     *
120
     * @return integer
121
     */
122
    public function getTypeId()
123
    {
124
        return $this->typeId;
125
    }
126
127
    /**
128
     * Set published
129
     *
130
     * @param boolean $published
131
     * @return CharSkill
132
     */
133
    public function setPublished($published)
134
    {
135
        $this->published = $published;
136
137
        return $this;
138
    }
139
140
    /**
141
     * Get published
142
     *
143
     * @return boolean
144
     */
145
    public function isPublished()
146
    {
147
        return $this->published;
148
    }
149
150
    /**
151
     * Get character
152
     *
153
     * @return \Tarioch\EveapiFetcherBundle\Entity\CharCharacterSheet
154
     */
155
    public function getCharacter()
156
    {
157
        return $this->character;
158
    }
159
}
160