예제 #1
0
 /**
  * Retrieve itemInfo model
  * 
  * @param array $itemData
  * @return ItemInfo
  */
 private static function getItem(array $itemData)
 {
     $item = new ItemInfo();
     $item->setArticleName($itemData['name'])->setArticleNumber($itemData['id'])->setQuantity($itemData['qty'])->setTax($itemData['tax'])->setTotalPrice($itemData['totalPrice'])->setUnitPrice($itemData['unitPrice']);
     return $item;
 }