original_string: public function setOptions( $options ) 
      {
          if ( is_array( $options ) ) 
          {
              $this->options->merge( $options );
          } 
          else if ( $options instanceof ezcTranslationTsBackendOptions ) 
          {
              $this->options = $options;
          }
          else
          {
              throw new ezcBaseValueException( "options", $options, "instance of ezcTranslationTsBackendOptions" );
          }
      }
code: public function setOptions( $options ) 
      {
          if ( is_array( $options ) ) 
          {
              $this->options->merge( $options );
          } 
          else if ( $options instanceof ezcTranslationTsBackendOptions ) 
          {
              $this->options = $options;
          }
          else
          {
              throw new ezcBaseValueException( "options", $options, "instance of ezcTranslationTsBackendOptions" );
          }
      }
code_tokens: public function setOptions ( $ options ) { if ( is_array ( $ options ) ) { $ this -> options -> merge ( $ options ) ; } else if ( $ options instanceof ezcTranslationTsBackendOptions ) { $ this -> options = $ options ; } else { throw new ezcBaseValueException ( "options" , $ options , "instance of ezcTranslationTsBackendOptions" ) ; } }
docstring: Set new options.
  This method allows you to change the options of the translation backend.
  
  @param ezcTranslationTsBackendOptions $options The options to set.
  
  @throws ezcBaseSettingNotFoundException
  If you tried to set a non-existent option value.
  @throws ezcBaseSettingValueException
  If the value is not valid for the desired option.
  @throws ezcBaseValueException
  If you submit neither an array nor an instance of
  ezcTranslationTsBackendOptions.
docstring_tokens: Set new options . This method allows you to change the options of the translation backend .