public function addProduct($itemCode, $itemPrice, $itemUrl, $itemQuantity, $itemTotal = 0, $itemName = '', $itemImage = '', $properties = [])
    {
        $product = new Product($itemCode, $itemPrice, $itemUrl, $itemQuantity, $itemTotal, $itemName, $itemImage, $properties);

        array_push($this->order, $product);

        return $product;
    }
public function addProduct($itemCode, $itemPrice, $itemUrl, $itemQuantity, $itemTotal = 0, $itemName = '', $itemImage = '', $properties = [])
    {
        $product = new Product($itemCode, $itemPrice, $itemUrl, $itemQuantity, $itemTotal, $itemName, $itemImage, $properties);

        array_push($this->order, $product);

        return $product;
    }
public function addProduct ( $ itemCode , $ itemPrice , $ itemUrl , $ itemQuantity , $ itemTotal = 0 , $ itemName = '' , $ itemImage = '' , $ properties = [ ] ) { $ product = new Product ( $ itemCode , $ itemPrice , $ itemUrl , $ itemQuantity , $ itemTotal , $ itemName , $ itemImage , $ properties ) ; array_push ( $ this -> order , $ product ) ; return $ product ; }
Adds a new product to order collection

@param string $itemCode
@param number $itemPrice
@param string $itemUrl
@param int $itemQuantity
@param int $itemTotal
@param string $itemName
@param string $itemImage
@param array $properties
@return \Moosend\Models\Product
Adds a new product to order collection