protected function addSslOptions($dsn, array $config)
    {
        foreach (['sslmode', 'sslcert', 'sslkey', 'sslrootcert'] as $option) {
            if (isset($config[$option])) {
                $dsn .= ";{$option}={$config[$option]}";
            }
        }

        return $dsn;
    }
protected function addSslOptions($dsn, array $config)
    {
        foreach (['sslmode', 'sslcert', 'sslkey', 'sslrootcert'] as $option) {
            if (isset($config[$option])) {
                $dsn .= ";{$option}={$config[$option]}";
            }
        }

        return $dsn;
    }
protected function addSslOptions ( $ dsn , array $ config ) { foreach ( [ 'sslmode' , 'sslcert' , 'sslkey' , 'sslrootcert' ] as $ option ) { if ( isset ( $ config [ $ option ] ) ) { $ dsn .= ";{$option}={$config[$option]}" ; } } return $ dsn ; }
Add the SSL options to the DSN.

@param  string  $dsn
@param  array  $config
@return string
Add the SSL options to the DSN .