<?php
/**
 * Manual rollback outcome.
 *
 * @package ScheduledChanges
 */

namespace ScheduledChanges\Rollback;

use ScheduledChanges\Domain\Run\RunStatus;

/**
 * Durable rollback run summary.
 */
final class RollbackOutcome {
	private int $run_id;
	private string $status;
	/**
	 * @var array<string, mixed>
	 */
	private array $summary;
	/**
	 * @param array<string,mixed> $summary Rollback result details.
	 */
	public function __construct( int $run_id, string $status, array $summary ) {
		$this->run_id  = $run_id;
		$this->status  = $status;
		$this->summary = $summary;
	}

	public function runId(): int {
		return $this->run_id;
	}

	public function status(): string {
		return $this->status;
	}

	/**
	 * @return array<string,mixed>
	 */
	public function summary(): array {
		return $this->summary;
	}
}
