src/Traits/Singleton.php
final public static function getInstance(...$params)
    {
        $called = static::class;
        if (self::$instance instanceof $called) {
            return self::$instance;
        } else {
            return self::$instance = new $called(...$params);
        }
    }
final public static function getInstance(...$params)
    {
        $called = static::class;
        if (self::$instance instanceof $called) {
            return self::$instance;
        } else {
            return self::$instance = new $called(...$params);
        }
    }
final public static function getInstance ( ... $ params ) { $ called = static :: class ; if ( self :: $ instance instanceof $ called ) { return self :: $ instance ; } else { return self :: $ instance = new $ called ( ... $ params ) ; } }
Dynamic singleton can call a class with parameters.

@param ...$params
@return $this
@throws \ForceLabs\Framework\Debug\BasicException
Dynamic singleton can call a class with parameters .