<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Distributed\Failover;

final class DistributedQueueRecoveryResult
{
    public function __construct(
        private readonly bool $balanced = true,
        private readonly int $moves = 0,
        private readonly array $details = []
    ) {}

    public function toArray(): array
    {
        return [
            'balanced' => $this->balanced,
            'moves' => $this->moves,
            'details' => $this->details,
        ];
    }
}
