public function addItem($product, $quantity, $detail, $price)
    {
        $item = new stdClass();
        $item->product = $product;
        $item->quantity = $quantity;
        $item->detail = $detail;
        $item->price = $this->convertAmount($price);

        $this->data->items[] = $item;

        return $this;
    }
public function addItem($product, $quantity, $detail, $price)
    {
        $item = new stdClass();
        $item->product = $product;
        $item->quantity = $quantity;
        $item->detail = $detail;
        $item->price = $this->convertAmount($price);

        $this->data->items[] = $item;

        return $this;
    }
public function addItem ( $ product , $ quantity , $ detail , $ price ) { $ item = new stdClass ( ) ; $ item -> product = $ product ; $ item -> quantity = $ quantity ; $ item -> detail = $ detail ; $ item -> price = $ this -> convertAmount ( $ price ) ; $ this -> data -> items [ ] = $ item ; return $ this ; }
Add item to a order

@param  string  $product
@param  int  $quantity
@param  string  $detail
@param  float  $price
@return $this
Add item to a order