<?php
/** 
 * @package     VikRestaurants
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

namespace E4J\VikRestaurants\Upselling;

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

/**
 * This interface can be used to compute the confidence score of 2 different items.
 * 
 * @since 1.11
 */
interface ScoreCalculator
{
    /**
     * Computes the confidence score of the specified items.
     * The higher the score, the higher the probability of seeing
     * them within the same purchase.
     * 
     * @param   int    $itemA  The ID of the first item.
     * @param   int    $itemB  The ID of the second item.
     * 
     * @return  float  The resulting score.
     */
    public function computeScore(int $itemA, int $itemB);
}
