original_string: public function getAPIByType($type)
      {
          switch ($type) {
              case 'news_image':
                  $api = self::API_NEWS_IMAGE_UPLOAD;
                  break;
              default:
                  $api = self::API_UPLOAD;
          }
  
          return $api;
      }
code: public function getAPIByType($type)
      {
          switch ($type) {
              case 'news_image':
                  $api = self::API_NEWS_IMAGE_UPLOAD;
                  break;
              default:
                  $api = self::API_UPLOAD;
          }
  
          return $api;
      }
code_tokens: public function getAPIByType ( $ type ) { switch ( $ type ) { case 'news_image' : $ api = self :: API_NEWS_IMAGE_UPLOAD ; break ; default : $ api = self :: API_UPLOAD ; } return $ api ; }
docstring: Get API by type.
  
  @param string $type
  
  @return string
docstring_tokens: Get API by type .