<?php
/**
 * Gate (context) rules helper.
 *
 * @package PRECO
 */

namespace PRECO\Includes\Frontend\Engine\Filters\Query;

defined( 'ABSPATH' ) || exit;

/**
 * Gate (context) rules helper.
 */
class GateRuleHelper {
	/**
	 * All current_* triggers are now handled as real tax_query filters by
	 * CurrentTaxRuleHelper. This method is retained for any future gate-only
	 * triggers added via the preco_recommendations_apply_rule filter.
	 *
	 * @param string           $trigger_type Trigger.
	 * @param string           $relation     Relation.
	 * @param mixed            $value        Value.
	 * @param array            $context      Context.
	 * @param \WC_Product|null $product      Current product.
	 * @return bool
	 */
	public function passes_context_gate_rule( $trigger_type, $relation, $value, $context, $product ) {
		return true;
	}
}
