Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ClickToSign
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4/**
5 * SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
6 * SPDX-License-Identifier: AGPL-3.0-or-later
7 */
8
9namespace OCA\Libresign\Service\IdentifyMethod\SignatureMethod;
10
11use OCA\Libresign\Service\IdentifyMethod\IdentifyService;
12
13class ClickToSign extends AbstractSignatureMethod {
14    public function __construct(
15        protected IdentifyService $identifyService,
16    ) {
17        // TRANSLATORS Name of possible authenticator method. This signalize that the signer only need to click to sign after was identified
18        $this->setFriendlyName($this->identifyService->getL10n()->t('Click to sign'));
19        parent::__construct(
20            $identifyService,
21        );
22    }
23}