Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
| SignRequestCanceled | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getIdentifier | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPriority | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| canChangeNotification | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| canChangeMail | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 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\Activity\Settings; |
| 10 | |
| 11 | use OCA\Libresign\Events\SignRequestCanceledEvent; |
| 12 | use OCP\IL10N; |
| 13 | |
| 14 | class SignRequestCanceled extends LibresignActivitySettings { |
| 15 | public function __construct( |
| 16 | protected IL10N $l, |
| 17 | ) { |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * {@inheritdoc} |
| 22 | */ |
| 23 | #[\Override] |
| 24 | public function getIdentifier(): string { |
| 25 | return SignRequestCanceledEvent::SIGN_REQUEST_CANCELED; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * {@inheritdoc} |
| 30 | */ |
| 31 | #[\Override] |
| 32 | public function getName(): string { |
| 33 | // TRANSLATORS Activity app setting label for LibreSign events when a signature request is canceled before completion. Keep the <strong> markup. |
| 34 | return $this->l->t('A signature request has been <strong>canceled</strong>'); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * {@inheritdoc} |
| 39 | */ |
| 40 | #[\Override] |
| 41 | public function getPriority(): int { |
| 42 | return 51; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * {@inheritdoc} |
| 47 | */ |
| 48 | #[\Override] |
| 49 | public function canChangeNotification(): bool { |
| 50 | return true; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * {@inheritdoc} |
| 55 | */ |
| 56 | #[\Override] |
| 57 | public function canChangeMail() { |
| 58 | return true; |
| 59 | } |
| 60 | } |