<?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\Recurrence;

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

/**
 * Interface used to compare given dates against the specified recurrence options.
 * 
 * @since 1.10
 */
interface Recurrence
{
    /**
     * Checks whether the specified date matches the internal recurring dates.
     * 
     * @param   \DateTime  $date  The date to compare.
     * 
     * @return  bool       True if matching, false otherwise.
     */
    public function match(\DateTime $date);
}
