original_string: public function translate(
          $text,
          $to,
          $from = null,
          $category = null,
          $contentType = ApiCall\Translate::CONTENT_TYPE_TEXT
      )
      {
          $apiCall = new ApiCall\Translate($text, $to, $from, $category, $contentType);
  
          return $this->call($apiCall);
      }
code: public function translate(
          $text,
          $to,
          $from = null,
          $category = null,
          $contentType = ApiCall\Translate::CONTENT_TYPE_TEXT
      )
      {
          $apiCall = new ApiCall\Translate($text, $to, $from, $category, $contentType);
  
          return $this->call($apiCall);
      }
code_tokens: public function translate ( $ text , $ to , $ from = null , $ category = null , $ contentType = ApiCall \ Translate :: CONTENT_TYPE_TEXT ) { $ apiCall = new ApiCall \ Translate ( $ text , $ to , $ from , $ category , $ contentType ) ; return $ this -> call ( $ apiCall ) ; }
docstring: Translates a given text or html to the given language
  
  The language of the given text or html is optional, and will be auto-detected
  The category will default to "general"
  
  @param string $text
  @param string $to
  @param string|null $from
  @param string $contentType
  @param string|null $category
  @return string
docstring_tokens: Translates a given text or html to the given language