<?php
/**
 * Fact Viewer compatibility adapter for the neutral Papy3D Suite hub.
 *
 * @package Papy3DFactViewerForChuck365
 */

declare(strict_types=1);

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/** Preserve the Fact Viewer hub API while delegating every operation. */
final class PAPYFAVI_Admin_Hub {
	/** Identifies this class as a compatibility bridge, not a legacy hub owner. */
	public static function p3dsuite_bridge_version(): string {
		return P3DSUITE_Admin_Hub::version();
	}

	/** Register one active plugin card. */
	public static function register_plugin( array $plugin ): void {
		P3DSUITE_Admin_Hub::register_plugin( $plugin );
	}

	/** Persist locale-neutral routing metadata. */
	public static function persist_plugin( array $plugin ): void {
		P3DSUITE_Admin_Hub::persist_plugin( $plugin );
	}

	/** Remove only this plugin card. */
	public static function unregister_plugin( string $slug ): void {
		P3DSUITE_Admin_Hub::unregister_plugin( $slug );
	}

	/** Return the single shared parent menu slug. */
	public static function menu_slug(): string {
		return P3DSUITE_Admin_Hub::menu_slug();
	}

	/** Return the selected shared implementation version. */
	public static function version(): string {
		return P3DSUITE_Admin_Hub::version();
	}
}
