original_string: public function setOptions( $options )
      {
          switch ( true )
          {
              case ( $options instanceof ezcCacheStorageMemcacheOptions ):
                  $this->properties['options'] = $options;
                  break;
              case ( $options instanceof ezcCacheStorageOptions ):
                  $this->properties['options']->mergeStorageOptions( $options );
                  break;
              case ( is_array( $options ) ):
                  $this->properties['options']->merge( $options );
                  break;
              default:
                  throw new ezcBaseValueException(
                      'options',
                      $options,
                      'instance of ezcCacheStorageMemcacheOptions'
                  );
          }
      }
code: public function setOptions( $options )
      {
          switch ( true )
          {
              case ( $options instanceof ezcCacheStorageMemcacheOptions ):
                  $this->properties['options'] = $options;
                  break;
              case ( $options instanceof ezcCacheStorageOptions ):
                  $this->properties['options']->mergeStorageOptions( $options );
                  break;
              case ( is_array( $options ) ):
                  $this->properties['options']->merge( $options );
                  break;
              default:
                  throw new ezcBaseValueException(
                      'options',
                      $options,
                      'instance of ezcCacheStorageMemcacheOptions'
                  );
          }
      }
code_tokens: public function setOptions ( $ options ) { switch ( true ) { case ( $ options instanceof ezcCacheStorageMemcacheOptions ) : $ this -> properties [ 'options' ] = $ options ; break ; case ( $ options instanceof ezcCacheStorageOptions ) : $ this -> properties [ 'options' ] -> mergeStorageOptions ( $ options ) ; break ; case ( is_array ( $ options ) ) : $ this -> properties [ 'options' ] -> merge ( $ options ) ; break ; default : throw new ezcBaseValueException ( 'options' , $ options , 'instance of ezcCacheStorageMemcacheOptions' ) ; } }
docstring: Set new options.
  
  Overwrites the options with the given ones.
  
  @param ezcCacheStorageMemcacheOptions $options The options to set.
  
  @throws ezcBasePropertyNotFoundException
  If you tried to set a non-existent option value. The accepted
  options depend on the ezcCacheStorage implementation and may
  vary.
  @throws ezcBaseValueException
  If the value is not valid for the desired option.
  @throws ezcBaseValueException
  If you submit neither an array nor an instance of
  ezcCacheStorageOptions.
  
  @apichange Use $storage->options instead.
docstring_tokens: Set new options .