original_string: private function updateApiUrl($region)
      {
          $this->apiUrl = str_replace('region', strtolower($region), self::API_URL_PATTERN);
  
          return $this;
      }
code: private function updateApiUrl($region)
      {
          $this->apiUrl = str_replace('region', strtolower($region), self::API_URL_PATTERN);
  
          return $this;
      }
code_tokens: private function updateApiUrl ( $ region ) { $ this -> apiUrl = str_replace ( 'region' , strtolower ( $ region ) , self :: API_URL_PATTERN ) ; return $ this ; }
docstring: Update API url
  
  Update API url by replacing region in API url pattern
  
  @param string $region Region
  
  @return $this
docstring_tokens: Update API url