<?php

declare(strict_types=1);

namespace Drupal\flowdrop_trigger\Enum;

/**
 * Defines the priority levels for trigger execution.
 *
 * @internal This enum is not part of the public API and may change without notice.
 */
enum TriggerPriority: string {

  case Low = 'low';
  case Normal = 'normal';
  case High = 'high';
  case Critical = 'critical';

  /**
   * Gets a human-readable label for the priority.
   *
   * @return string
   *   The label.
   */
  public function label(): string {
    return match ($this) {
      self::Low => 'Low',
      self::Normal => 'Normal',
      self::High => 'High',
      self::Critical => 'Critical',
    };
  }

}
