<?php
/**
 * HappyFenceNG Total Enterprise Security Plugin
 * HAPPYWPRESS is a RazorVue Trademark.
 *
 * @package     HappyFenceNG
 * @developer   Simonluca Scillitani
 * @copyright   2025 RazorVue di Scillitani Simonluca
 * @link        https://razorvue.it
 * @author      RazorVue di Scillitani Simonluca
 * @brand       HappyWPress
 * @uri         https://happywpress.com
 * @set all
 */

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

/**PHPCS -> code compliance: we put useful comments where needed.. */
class HappyFenceNGMFA extends HappyFenceNGMCore {
	/**PHPCS -> code compliance: we put useful comments where needed..
	 *
	 * @param string $method ..we don't use it.
	 * @param array  $args ..we don't use it.
	 */
	public function __call( $method, $args ) {
		$manager = HappyFenceNGCRcontrol::getRoute( 'MFA' );
		$this->push(
			'mfa',
			array(
				'title'      => 'Multifactor Authentication',
				'menu_title' => 'Multifactor Auth',
				'capability' => HappyFenceNGStStored::OPTIONS,
				'slug'       => HappyFenceNGStStored::MAIN_SLUG . '-multifactor-guard',
				'callback'   => array( $manager, 'doRoute' ),
			)
		);
	}
}
