<?php

namespace Firebase\JWT;

/**
 * Minimal drop-in replacement for firebase/php-jwt's Key class — see
 * JWT.php in this same folder for the full context on why this exists.
 */
class Key
{
    private string $keyMaterial;
    private string $algorithm;

    public function __construct(string $keyMaterial, string $algorithm)
    {
        $this->keyMaterial = $keyMaterial;
        $this->algorithm   = $algorithm;
    }

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

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