$this->id, 'type' => $this->type, 'name' => $this->name, 'img' => $this->img, 'inslot' => $this->inslot, 'inOdet' => $this->inodet, 'data' => $this->data, 'iznosNOW' => $iNow, 'iznosMAX' => $iMax, ] = $item; $this->durability = (int)$iMax - (int)$iNow; $stat = new Stat(); $stat->getBonus(); $dataArr = Conversion::dataStringToArray(strtolower($this->data)); foreach ($stat->sysBonusNames as $bonusName) { if (!isset($dataArr["add_$bonusName"])) { $this->{"add_$bonusName"} = 0; continue; } $this->{"add_$bonusName"} = $dataArr["add_$bonusName"]; } } }