<?php
/**
 * Product Type Schema Hooks – wires AJAX actions to controller static endpoints.
 *
 * @package    MOMCS_Sync
 * @subpackage MOMCS_Sync\includes\common\hooks
 * @author     miniOrange
 */

declare(strict_types=1);

namespace MOMCS_Sync\Includes\Common\Hooks;

use MOMCS_Sync\Includes\Common\Controllers\Template_Mapping\Product_Type_Schema_Controller;

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

/**
 * Product Type Schema Hooks.
 */
class Product_Type_Schema_Hooks {
	/**
	 * Constructor.
	 */
	public function __construct() {
		$this->register_hooks();
	}

	/**
	 * Register AJAX hooks for product type schema feature.
	 */
	private function register_hooks(): void {
		add_action( 'wp_ajax_momcs_sync_get_product_type_schema', array( Product_Type_Schema_Controller::class, 'handle_get_product_type_schema' ) );
	}
}
