private function formProduct($body) { $product = new Product(); $product->setProductId($body['ProductID'])->setSku($body['SKU'])->setProductName($body['ProductName'])->setLongDescription($body['LongDescription'])->setShortDescription($body['ShortDescription'])->setProductURL($body['ProductURL'])->setProductImage($body['ProductImage'])->setWeight($body['Weight'])->setCost($body['Cost'])->setPrice($body['Price'])->setActive($body['Active'])->setCreated($body['Created'])->setLastUpdated($body['LastUpdated']); return $product; }