libresign/lib/Service/IdentifyMethod/Telegram.php
Vitor Mattos 034ff9ecbb
fix: psalm issues about override
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-10-07 18:23:41 -03:00

24 lines
709 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Libresign\Service\IdentifyMethod;
use OCA\Libresign\Service\IdentifyMethod\SignatureMethod\ISignatureMethod;
class Telegram extends TwofactorGateway {
public array $availableSignatureMethods = [
ISignatureMethod::SIGNATURE_METHOD_CLICK_TO_SIGN,
ISignatureMethod::SIGNATURE_METHOD_TELEGRAM,
];
#[\Override]
public function getFriendlyName(): string {
// TRANSLATORS Name of possible authenticator method. This signalize that the signer could be identified by Telegram
return $this->identifyService->getL10n()->t('Telegram');
}
}