public function getOptions($option = null)
    {
        $this->getAdapterOptions();
        if ($option !== null) {
            if (!isset($this->options[$option])) {
                throw new Exception\RuntimeException(sprintf(
                    'Options "%s" not found',
                    $option
                ));
            }
            return $this->options[$option];
        }
        return $this->options;
    }
public function getOptions($option = null)
    {
        $this->getAdapterOptions();
        if ($option !== null) {
            if (!isset($this->options[$option])) {
                throw new Exception\RuntimeException(sprintf(
                    'Options "%s" not found',
                    $option
                ));
            }
            return $this->options[$option];
        }
        return $this->options;
    }
public function getOptions ( $ option = null ) { $ this -> getAdapterOptions ( ) ; if ( $ option !== null ) { if ( ! isset ( $ this -> options [ $ option ] ) ) { throw new Exception \ RuntimeException ( sprintf ( 'Options "%s" not found' , $ option ) ) ; } return $ this -> options [ $ option ] ; } return $ this -> options ; }
Get individual or all options from underlying adapter options object

@param  string|null $option
@return mixed|array
Get individual or all options from underlying adapter options object