<?php

declare(strict_types=1);

namespace Drupal\flowdrop_workflow\Diagnostic\Mutation;

/**
 * Removes the edge with the given id.
 */
final class RemoveEdge implements WorkflowMutationInterface {

  /**
   * Constructs a RemoveEdge mutation.
   *
   * @param string $edgeId
   *   The id of the edge to remove.
   */
  public function __construct(
    public readonly string $edgeId,
  ) {}

  /**
   * {@inheritdoc}
   */
  public function summary(): string {
    return sprintf('Remove edge "%s".', $this->edgeId);
  }

}
