<?php

declare(strict_types=1);

namespace PhpWA\Auth;

use PhpWA\Protocol\Binary\BinaryNode;

final class PairingResult
{
      private $credentials;
      private $reply;
      private $keyIndex;

    public function __construct(AuthenticationCredentials $credentials, BinaryNode $reply, int $keyIndex)
    {
        $this->credentials = $credentials;
        $this->reply = $reply;
        $this->keyIndex = $keyIndex;
    }

    public function credentials(): AuthenticationCredentials { return $this->credentials; }
    public function reply(): BinaryNode { return $this->reply; }
    public function keyIndex(): int { return $this->keyIndex; }
    public function requiresReconnect(): bool { return true; }
}
