original_string: protected function mapPaymentProvider2DonateType(Request $request)
      {
          $result = '';
          switch ($request->getProvider()) {
              case Request::PROVIDER_PAYMENT_WALL:
                  $result = DonateLog::TYPE_PAYMENT_WALL;
                  break;
              case Request::PROVIDER_SUPER_REWARD:
                  $result = DonateLog::TYPE_SUPER_REWARD;
                  break;
              case Request::PROVIDER_XSOLLA:
                  $result = DonateLog::TYPE_XSOLLA;
                  break;
              case Request::PROVIDER_PAY_PAL:
                  $result = DonateLog::TYPE_PAY_PAL;
                  break;
              case Request::PROVIDER_SOFORT:
                  $result = DonateLog::TYPE_SOFORT;
                  break;
          }
  
          return $result;
      }
code: protected function mapPaymentProvider2DonateType(Request $request)
      {
          $result = '';
          switch ($request->getProvider()) {
              case Request::PROVIDER_PAYMENT_WALL:
                  $result = DonateLog::TYPE_PAYMENT_WALL;
                  break;
              case Request::PROVIDER_SUPER_REWARD:
                  $result = DonateLog::TYPE_SUPER_REWARD;
                  break;
              case Request::PROVIDER_XSOLLA:
                  $result = DonateLog::TYPE_XSOLLA;
                  break;
              case Request::PROVIDER_PAY_PAL:
                  $result = DonateLog::TYPE_PAY_PAL;
                  break;
              case Request::PROVIDER_SOFORT:
                  $result = DonateLog::TYPE_SOFORT;
                  break;
          }
  
          return $result;
      }
code_tokens: protected function mapPaymentProvider2DonateType ( Request $ request ) { $ result = '' ; switch ( $ request -> getProvider ( ) ) { case Request :: PROVIDER_PAYMENT_WALL : $ result = DonateLog :: TYPE_PAYMENT_WALL ; break ; case Request :: PROVIDER_SUPER_REWARD : $ result = DonateLog :: TYPE_SUPER_REWARD ; break ; case Request :: PROVIDER_XSOLLA : $ result = DonateLog :: TYPE_XSOLLA ; break ; case Request :: PROVIDER_PAY_PAL : $ result = DonateLog :: TYPE_PAY_PAL ; break ; case Request :: PROVIDER_SOFORT : $ result = DonateLog :: TYPE_SOFORT ; break ; } return $ result ; }
docstring: Helper to map the PaymentProvider 2 DonateType
  
  @param Request $request
  @return string
docstring_tokens: Helper to map the PaymentProvider 2 DonateType