original_string: public function setDomain($domain)
      {
          try {
              $this->domain = (string) $domain;
          } catch (Exception $e) {
              throw new InvalidArgumentException(
                  'Value provided as domain is not a string'
              );
          }
  
          return $this;
      }
code: public function setDomain($domain)
      {
          try {
              $this->domain = (string) $domain;
          } catch (Exception $e) {
              throw new InvalidArgumentException(
                  'Value provided as domain is not a string'
              );
          }
  
          return $this;
      }
code_tokens: public function setDomain ( $ domain ) { try { $ this -> domain = ( string ) $ domain ; } catch ( Exception $ e ) { throw new InvalidArgumentException ( 'Value provided as domain is not a string' ) ; } return $ this ; }
docstring: Updates the provider domain with a given value.
  
  @throws  InvalidArgumentException
  @param string $domain
  @return  Salesforce
docstring_tokens: Updates the provider domain with a given value .