public static function registerExtensionClass(string $name, string $class): bool
    {
        if (class_exists($class) === false) {
            return false;
        }
        if (self::$extension_classes === null) {
            self::$extension_classes = [];
        }
        $check = new ReflectionClass($class);
        if ($check->implementsInterface("TheCMSThread\\Classes\\Extension") === true) {
            self::$extension_classes[$name] = $class;
            return true;
        } else {
            return false;
        }
    }
public static function registerExtensionClass(string $name, string $class): bool
    {
        if (class_exists($class) === false) {
            return false;
        }
        if (self::$extension_classes === null) {
            self::$extension_classes = [];
        }
        $check = new ReflectionClass($class);
        if ($check->implementsInterface("TheCMSThread\\Classes\\Extension") === true) {
            self::$extension_classes[$name] = $class;
            return true;
        } else {
            return false;
        }
    }
public static function registerExtensionClass ( string $ name , string $ class ) : bool { if ( class_exists ( $ class ) === false ) { return false ; } if ( self :: $ extension_classes === null ) { self :: $ extension_classes = [ ] ; } $ check = new ReflectionClass ( $ class ) ; if ( $ check -> implementsInterface ( "TheCMSThread\\Classes\\Extension" ) === true ) { self :: $ extension_classes [ $ name ] = $ class ; return true ; } else { return false ; } }
Register an extension framework class

@param   string  $name   The name the class is registered under
@param   string  $class  The class name

@return  bool
Register an extension framework class