public static function getInstance(string $dumper): AbstractDumper
    {
        $class = static::getClassName($dumper);

        if (!isset(static::$singletons[$class])) {
            static::$singletons[$class] = new $class();
        }

        return static::$singletons[$class];
    }
public static function getInstance(string $dumper): AbstractDumper
    {
        $class = static::getClassName($dumper);

        if (!isset(static::$singletons[$class])) {
            static::$singletons[$class] = new $class();
        }

        return static::$singletons[$class];
    }
public static function getInstance ( string $ dumper ) : AbstractDumper { $ class = static :: getClassName ( $ dumper ) ; if ( ! isset ( static :: $ singletons [ $ class ] ) ) { static :: $ singletons [ $ class ] = new $ class ( ) ; } return static :: $ singletons [ $ class ] ; }
Get the dumper instance.

@param string $dumper the dumper

@return AbstractDumper the instance
Get the dumper instance .