Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Telegram
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getFriendlyName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4/**
5 * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
6 * SPDX-License-Identifier: AGPL-3.0-or-later
7 */
8
9namespace OCA\Libresign\Service\IdentifyMethod;
10
11use OCA\Libresign\Service\IdentifyMethod\SignatureMethod\ISignatureMethod;
12
13class Telegram extends TwofactorGateway {
14    public array $availableSignatureMethods = [
15        ISignatureMethod::SIGNATURE_METHOD_CLICK_TO_SIGN,
16        ISignatureMethod::SIGNATURE_METHOD_TELEGRAM,
17    ];
18
19    #[\Override]
20    public function getFriendlyName(): string {
21        // TRANSLATORS Name of possible authenticator method. This signalize that the signer could be identified by Telegram
22        return $this->identifyService->getL10n()->t('Telegram');
23    }
24}