static function getManager(?string $name = null): \Plasma\Types\TypeExtensionsManager {
        if($name === null) {
            if(!isset(static::$instances[static::GLOBAL_NAME])) {
                static::$instances[static::GLOBAL_NAME] = new static();
            }
            
            return static::$instances[static::GLOBAL_NAME];
        }
        
        if(isset(static::$instances[$name])) {
            return static::$instances[$name];
        }
        
        throw new \Plasma\Exception('Unknown name');
    }
static function getManager(?string $name = null): \Plasma\Types\TypeExtensionsManager {
        if($name === null) {
            if(!isset(static::$instances[static::GLOBAL_NAME])) {
                static::$instances[static::GLOBAL_NAME] = new static();
            }
            
            return static::$instances[static::GLOBAL_NAME];
        }
        
        if(isset(static::$instances[$name])) {
            return static::$instances[$name];
        }
        
        throw new \Plasma\Exception('Unknown name');
    }
static function getManager ( ? string $ name = null ) : \ Plasma \ Types \ TypeExtensionsManager { if ( $ name === null ) { if ( ! isset ( static :: $ instances [ static :: GLOBAL_NAME ] ) ) { static :: $ instances [ static :: GLOBAL_NAME ] = new static ( ) ; } return static :: $ instances [ static :: GLOBAL_NAME ] ; } if ( isset ( static :: $ instances [ $ name ] ) ) { return static :: $ instances [ $ name ] ; } throw new \ Plasma \ Exception ( 'Unknown name' ) ; }
Get a specific Type Extensions Manager under a specific name.
@param string|null  $name  If `null` is passed, the generic global one will be returned.
@return \Plasma\Types\TypeExtensionsManager
@throws \Plasma\Exception  Thrown if the name does not exist.
Get a specific Type Extensions Manager under a specific name .