Esempio n. 1
0
 /**
  * @param int $itemId
  *
  * @return array
  */
 protected function getItemStaticData($itemId)
 {
     $itemData = $this->staticData->getItemData()->get($itemId);
     $name = null;
     $avatar = null;
     if (!is_null($itemData)) {
         $avatar = $itemData->image->full;
         $name = $itemData->name;
     }
     return ['itemId' => $itemId, 'itemAvatar' => $avatar, 'itemName' => $name];
 }