<?php

declare(strict_types=1);

namespace Drupal\flowdrop_interrupt\Event;

use Drupal\flowdrop_interrupt\Entity\FlowDropInterruptInterface;
use Symfony\Contracts\EventDispatcher\Event;

/**
 * Event dispatched when an interrupt is cancelled.
 *
 * @internal This class is not part of the public API and may change without notice.
 */
class InterruptCancelledEvent extends Event {

  /**
   * The event name.
   */
  const NAME = 'flowdrop_interrupt.cancelled';

  /**
   * Constructs a new InterruptCancelledEvent.
   *
   * @param \Drupal\flowdrop_interrupt\Entity\FlowDropInterruptInterface $interrupt
   *   The cancelled interrupt entity.
   */
  public function __construct(
    public readonly FlowDropInterruptInterface $interrupt,
  ) {}

}
