public function getOptions($key = null, $default = null)
    {
        if ($key !== null) {
            return isset($this->_options[$key]) ? $this->_options[$key] : $default;
        } else {
            return $this->_options;
        }
    }
public function getOptions($key = null, $default = null)
    {
        if ($key !== null) {
            return isset($this->_options[$key]) ? $this->_options[$key] : $default;
        } else {
            return $this->_options;
        }
    }
public function getOptions ( $ key = null , $ default = null ) { if ( $ key !== null ) { return isset ( $ this -> _options [ $ key ] ) ? $ this -> _options [ $ key ] : $ default ; } else { return $ this -> _options ; } }
Get options for configuring widget

@param string|null $key
@param mixed|null $default

@return mixed|null
Get options for configuring widget