original_string: public function setQuantity($qty)
      {
          if(empty($qty) || ! is_numeric($qty))
              throw new \InvalidArgumentException('Please supply a valid quantity.');
  
          $this->qty = $qty;
      }
code: public function setQuantity($qty)
      {
          if(empty($qty) || ! is_numeric($qty))
              throw new \InvalidArgumentException('Please supply a valid quantity.');
  
          $this->qty = $qty;
      }
code_tokens: public function setQuantity ( $ qty ) { if ( empty ( $ qty ) || ! is_numeric ( $ qty ) ) throw new \ InvalidArgumentException ( 'Please supply a valid quantity.' ) ; $ this -> qty = $ qty ; }
docstring: Set the quantity for this cart item.
  
  @param int|float $qty
docstring_tokens: Set the quantity for this cart item .