src/Database/ConnectionCollection.php
public static function getDefault()
    {
        if (self::existsDefault()) {
            $defaultConnectionName = self::$defaultConnectionName;
            return self::$connectionList[$defaultConnectionName];
        } else {
            throw new Exception('Datasource "' . $defaultConnectionName . '" isn\'t defined in DatasourceCollection');
            return false;
        }
    }
public static function getDefault()
    {
        if (self::existsDefault()) {
            $defaultConnectionName = self::$defaultConnectionName;
            return self::$connectionList[$defaultConnectionName];
        } else {
            throw new Exception('Datasource "' . $defaultConnectionName . '" isn\'t defined in DatasourceCollection');
            return false;
        }
    }
public static function getDefault ( ) { if ( self :: existsDefault ( ) ) { $ defaultConnectionName = self :: $ defaultConnectionName ; return self :: $ connectionList [ $ defaultConnectionName ] ; } else { throw new Exception ( 'Datasource "' . $ defaultConnectionName . '" isn\'t defined in DatasourceCollection' ) ; return false ; } }
Get default connection

@since   1.0
@return  bool|\Pabana\Database\Connection Return default Connection object if exist or return false.
Get default connection