id = (int) $id; $this->name = (string) $name; $this->rarity = (int) $rarity; $this->activationType = (int) $activationType; $this->slot = (int) $slot; } public function getId(){ return $this->id; } public function getName(){ return $this->name; } public function getRarity(){ return $this->rarity; } public function getActivationType(){ return $this->activationType; } public function getSlot(){ return $this->slot; } public function hasSlot($slot){ return ($this->slot & $slot) > 0; } public function getLevel(){ return $this->level; } public function setLevel($level){ $this->level = (int) $level; return $this; } }