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;
    }
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;
    }
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 ; }
Set adapter options

@param array|AbstractOptions $options
@return $this
Set adapter options