src/Norm/Norm.php
public static function getConnection($connectionName = '')
    {
        if (!$connectionName) {
            $connectionName = static::$defaultConnection;
        }
        if (isset(static::$connections[$connectionName])) {
            return static::$connections[$connectionName];
        }
    }
public static function getConnection($connectionName = '')
    {
        if (!$connectionName) {
            $connectionName = static::$defaultConnection;
        }
        if (isset(static::$connections[$connectionName])) {
            return static::$connections[$connectionName];
        }
    }
public static function getConnection ( $ connectionName = '' ) { if ( ! $ connectionName ) { $ connectionName = static :: $ defaultConnection ; } if ( isset ( static :: $ connections [ $ connectionName ] ) ) { return static :: $ connections [ $ connectionName ] ; } }
Get connection by its connection name, if no connection name provided then the function will return default connection.

@param string $connectionName

@return \Norm\Connection
Get connection by its connection name if no connection name provided then the function will return default connection .