<?php
/**
 * Detection Heartbeat Event
 *
 * Schedules the recurring abandoned cart detection job.
 *
 * @package EDD\Pro\CartRecovery\Cron\Events
 * @since   3.6.5
 */

namespace EDD\Pro\CartRecovery\Cron\Events;

use EDD\Cron\Events\Event;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore

/**
 * Detection Heartbeat Event Class
 *
 * Schedules regular checks for abandoned carts.
 *
 * @since 3.6.5
 */
class DetectionHeartbeat extends Event {

	/**
	 * Hook name.
	 *
	 * @since 3.6.5
	 * @var string
	 */
	protected $hook = 'edd_acr_detection_heartbeat';

	/**
	 * First Run Time.
	 *
	 * @since 3.6.5
	 * @var int
	 */
	protected $first_run = 0;

	/**
	 * Schedule name.
	 *
	 * @since 3.6.5
	 * @var string
	 */
	protected $schedule = 'edd_acr_sched_detection';
}
