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

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

/**
 * Interface used to define the methods of an installable cron job.
 * 
 * @since 1.10
 */
interface Installable
{
    /**
     * Installs the cron job upon creation.
     * 
     * @param   int   $id  The ID of the newly created cron job.
     * 
     * @return  void
     */
    public function install(int $id);

    /**
     * Uninstalls the cron job upon deletion.
     * 
     * @param   int   $id  The ID of the deleted cron job.
     * 
     * @return  void
     */
    public function uninstall(int $id);
}
