<?php
/**
 * A class to update the Web interface of the plugin.
 *
 * @since 3.0.0
 */

declare( strict_types=1 );
namespace FeData\FastEvents\Hooks\Actions;

defined( 'ABSPATH' ) || exit;

use FeData\FastEvents\Core\AdminUI;

/**
 * A class to update the Web interface of the plugin.
 */
final class UpdateWebUIAction {

	/**
	 * UpdateWebUIAction constructor.
	 *
	 * @since 3.0.0
	 *
	 * @param AdminUI $admin_ui Admin UI class.
	 */
	public function __construct( private readonly AdminUI $admin_ui ) {}


	/**
	 * Update the Web interface of the plugin.
	 *
	 * @since 2.0
	 */
	public function update_web_ui(): void {
		$this->admin_ui->install_admin_interface( $this->admin_ui::FE_ADMIN_UI_DAILY_CHECK );
	}
}
