present = $row['present']; if ($this->artefact) $this->name = <<{$this->name} NAME; } public function printInfo() { parent::printBaseInfo(); parent::printRequirements(); parent::printBonuses(); if ($this->present) echo "

Это подарок от {$this->present}. Вы не можете передать его кому-либо ещё.

"; } public function printImage() { if (!in_array($this->type,[12,50,200])) { echo "id} title='Надеть'>"; parent::printImage(); echo ""; } else parent::printImage(); } /** * Для кнопок управления под картинкой предмета в зависимости от ситуации. */ public function printControls() { echo << BTN; } public function getId() { return $this->id; } }