<?php
/**
 * PremiumThemes — registers premium-only themes into ThemeRegistry.
 * Implemented in Phase 10 (premium layer).
 *
 * @package     Relatedly\Premium
 * @since       2.0.0
 * @fs_premium_only
 */

namespace Relatedly\Premium;

defined( 'ABSPATH' ) || exit;

/**
 * Registers premium-only themes.
 *
 * @since 2.0.0
 */
class PremiumThemes {

	/**
	 * Wire the premium theme registration hook.
	 *
	 * @since 2.1.0
	 */
	public function init_hooks(): void {
		add_action( 'relatedly_register_themes', array( $this, 'register' ) );
	}

	/**
	 * Register premium themes when license is valid.
	 * Called via the relatedly_register_themes action hook.
	 *
	 * @since 2.0.0
	 * @param \Relatedly\Theming\ThemeRegistry $registry Theme registry.
	 */
	public function register( \Relatedly\Theming\ThemeRegistry $registry ): void {
		unset( $registry );

		if ( ! FeatureGate::is_premium() ) {
			return;
		}
		// Premium theme registrations go here once the free/premium split is decided.
	}
}
