original_string: public function setAdapterOptions($options)
      {
          if (!is_array($options) && !$options instanceof AbstractOptions) {
              throw new Exception\InvalidArgumentException(sprintf(
                  '"%s" expects an array or a valid instance of "%s"; received "%s"',
                  __METHOD__,
                  'Zend\Stdlib\AbstractOptions',
                  is_object($options) ? get_class($options) : gettype($options)
              ));
          }
          $this->adapterOptions = $options;
          $this->options = $options;
  
          return $this;
      }
code: public function setAdapterOptions($options)
      {
          if (!is_array($options) && !$options instanceof AbstractOptions) {
              throw new Exception\InvalidArgumentException(sprintf(
                  '"%s" expects an array or a valid instance of "%s"; received "%s"',
                  __METHOD__,
                  'Zend\Stdlib\AbstractOptions',
                  is_object($options) ? get_class($options) : gettype($options)
              ));
          }
          $this->adapterOptions = $options;
          $this->options = $options;
  
          return $this;
      }
code_tokens: public function setAdapterOptions ( $ options ) { if ( ! is_array ( $ options ) && ! $ options instanceof AbstractOptions ) { throw new Exception \ InvalidArgumentException ( sprintf ( '"%s" expects an array or a valid instance of "%s"; received "%s"' , __METHOD__ , 'Zend\Stdlib\AbstractOptions' , is_object ( $ options ) ? get_class ( $ options ) : gettype ( $ options ) ) ) ; } $ this -> adapterOptions = $ options ; $ this -> options = $ options ; return $ this ; }
docstring: Set adapter options
  
  @param array|AbstractOptions $options
  @return $this
docstring_tokens: Set adapter options