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

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

@return  bool
Register an admin class