private function __construct($id, $name, $rarity, $activationType, $slot) { $this->id = (int) $id; $this->name = (string) $name; $this->rarity = (int) $rarity; $this->activationType = (int) $activationType; $this->slot = (int) $slot; }