original_string: public static function consumeDiscount($discountCode)
      {
          $discount = Discount_Shortcuts_GetDiscountByCodeOr404($discountCode);
          $engine = $discount->get_engine();
          $engine->consumeDiscount($discount);
          return $discount;
      }
code: public static function consumeDiscount($discountCode)
      {
          $discount = Discount_Shortcuts_GetDiscountByCodeOr404($discountCode);
          $engine = $discount->get_engine();
          $engine->consumeDiscount($discount);
          return $discount;
      }
code_tokens: public static function consumeDiscount ( $ discountCode ) { $ discount = Discount_Shortcuts_GetDiscountByCodeOr404 ( $ discountCode ) ; $ engine = $ discount -> get_engine ( ) ; $ engine -> consumeDiscount ( $ discount ) ; return $ discount ; }
docstring: Decrease one unit of given discount.
  If discount is one-time-use it will be invalid after this function.
  
  @param string $discountCode
  @return Discount_Discount
docstring_tokens: Decrease one unit of given discount . If discount is one - time - use it will be invalid after this function .