Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| TelegramToken | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
5 / 5 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Service\IdentifyMethod\SignatureMethod; |
| 10 | |
| 11 | use OCA\Libresign\Service\IdentifyMethod\IdentifyService; |
| 12 | |
| 13 | class TelegramToken extends TwofactorGatewayToken { |
| 14 | public function __construct( |
| 15 | protected IdentifyService $identifyService, |
| 16 | protected TokenService $tokenService, |
| 17 | ) { |
| 18 | // TRANSLATORS Name of possible authenticator method. This signalize that the signer could be identified by Telegram token |
| 19 | $this->setFriendlyName($this->identifyService->getL10n()->t('Telegram token')); |
| 20 | parent::__construct( |
| 21 | $identifyService, |
| 22 | $tokenService, |
| 23 | ); |
| 24 | } |
| 25 | } |