'Weapon', self::ARMOR => 'Armor', self::CONSUMABLE => 'Consumable', self::MISC => 'Miscellaneous', self::CURRENCY => 'Currency', }; } /** * Check if this item type can be equipped */ public function canEquip(): bool { return in_array($this, [self::WEAPON, self::ARMOR]); } /** * Check if this item type can be used/consumed */ public function canUse(): bool { return $this === self::CONSUMABLE; } }