public function buy(Item $item) { $this->setArmor($this->getArmor() + $item->getArmor()); $this->setDamage($this->getDamage() + $item->getDamage()); $this->spentCash += $item->getCost(); }