<?php

declare(strict_types=1);

namespace Kreait\Firebase\JWT\Signer;

use Lcobucci\JWT\Signer;
use Lcobucci\JWT\Signer\Key;

final class None implements Signer
{
    public function algorithmId(): string
    {
        return 'none';
    }

    /**
     * @throws void
     */
    public function sign(string $payload, Key $key): string
    {
        // @phpstan-ignore-next-line
        return '';
    }

    /**
     * @throws void
     */
    public function verify(string $expected, string $payload, Key $key): bool
    {
        // @phpstan-ignore-next-line
        return $expected === '';
    }
}
