public static function getDb($driver = null, $option = [], $forceNew = false)
    {
        if (is_callable(static::$db)) {
            static::$db = call_user_func(static::$db);
        }

        if (!static::$db || $forceNew) {
            static::$db = DatabaseFactory::getDbo($driver, $option, $forceNew);
        }

        return static::$db;
    }
public static function getDb($driver = null, $option = [], $forceNew = false)
    {
        if (is_callable(static::$db)) {
            static::$db = call_user_func(static::$db);
        }

        if (!static::$db || $forceNew) {
            static::$db = DatabaseFactory::getDbo($driver, $option, $forceNew);
        }

        return static::$db;
    }
public static function getDb ( $ driver = null , $ option = [ ] , $ forceNew = false ) { if ( is_callable ( static :: $ db ) ) { static :: $ db = call_user_func ( static :: $ db ) ; } if ( ! static :: $ db || $ forceNew ) { static :: $ db = DatabaseFactory :: getDbo ( $ driver , $ option , $ forceNew ) ; } return static :: $ db ; }
Method to get property Db

@param string  $driver
@param array   $option
@param boolean $forceNew

@return AbstractDatabaseDriver
Method to get property Db