public function getOption($key = null, $default = null)
    {
        $name = $this->current ?: 'default';

        $options = isset($this->configs[$name]['options']) ? $this->configs[$name]['options'] : [];
        if ($key === null) {
            return $options;
        }

        return isset($options[$key]) ? $options[$key] : $default;
    }
public function getOption($key = null, $default = null)
    {
        $name = $this->current ?: 'default';

        $options = isset($this->configs[$name]['options']) ? $this->configs[$name]['options'] : [];
        if ($key === null) {
            return $options;
        }

        return isset($options[$key]) ? $options[$key] : $default;
    }
public function getOption ( $ key = null , $ default = null ) { $ name = $ this -> current ? : 'default' ; $ options = isset ( $ this -> configs [ $ name ] [ 'options' ] ) ? $ this -> configs [ $ name ] [ 'options' ] : [ ] ; if ( $ key === null ) { return $ options ; } return isset ( $ options [ $ key ] ) ? $ options [ $ key ] : $ default ; }
Get current connection option by key
@param  string $key
@param  mixed $default
@return mixed
Get current connection option by key