original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Add item to a order
  
  @param  string  $product
  @param  int  $quantity
  @param  string  $detail
  @param  float  $price
  @return $this
docstring_tokens: Add item to a order