1 | <?php |
||
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) |
||
47 | |||
48 | /** |
||
49 | * Get id |
||
50 | * |
||
51 | * @return integer |
||
52 | */ |
||
53 | public function getId() |
||
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() |
||
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() |
||
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() |
||
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() |
||
149 | |||
150 | /** |
||
151 | * Get character |
||
152 | * |
||
153 | * @return \Tarioch\EveapiFetcherBundle\Entity\CharCharacterSheet |
||
154 | */ |
||
155 | public function getCharacter() |
||
159 | } |
||
160 |