<?php
/**
 * Promostandards_Sanmar_Ca Filter Hook
 *
 * @category   WordPress_Plugin
 * @package    Common
 * @subpackage Hooks
 * @author     miniOrange <info@miniorange.com>
 * @license    MIT/Expat
 * @link       https://plugins.miniorange.com/woocommerce-api-product-sync-with-woocommerce-rest-apis
 */

namespace MOWCPS\Common\Hooks;

use MOWCPS\Common\Constants\Plugin_Filters;
use MOWCPS\Common\Interfaces\Hookable_Interface;
use MOWCPS\Common\Suppliers\Promostandards_Sanmar_Ca as Promostandards_Sanmar_Ca_Supplier;

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

/**
 * Class Promostandards_Sanmar_Ca
 *
 * Handles Promostandards_Sanmar_Ca filter hook registration
 */
class Promostandards_Sanmar_Ca implements Hookable_Interface {

	/**
	 * Initialize the Promostandards_Sanmar_Ca filter hooks.
	 */
	public function __construct() {
		$this->register_hooks();
	}

	/**
	 * Register WordPress hooks.
	 *
	 * @return void
	 */
	public function register_hooks() {
		add_filter( Plugin_Filters::FILTER_CURRENT_DATA_ALTERATION_FILTER, array( Promostandards_Sanmar_Ca_Supplier::class, 'alter_product_data' ), 10, 1 );
	}
}
