Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| FileToSign | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
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 | |||
| 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\SendSignNotificationEvent; |
| 12 | use OCP\IL10N; |
| 13 | |
| 14 | class FileToSign extends LibresignActivitySettings { |
| 15 | public function __construct( |
| 16 | protected IL10N $l, |
| 17 | ) { |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * @return string Lowercase a-z and underscore only identifier. The type of table activity |
| 22 | * @since 20.0.0 |
| 23 | */ |
| 24 | #[\Override] |
| 25 | public function getIdentifier(): string { |
| 26 | return SendSignNotificationEvent::FILE_TO_SIGN; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * @return string A translated string |
| 31 | * @since 11.0.0 |
| 32 | */ |
| 33 | #[\Override] |
| 34 | public function getName(): string { |
| 35 | // TRANSLATORS Activity app setting label for LibreSign events when the current user has a pending document to sign. Keep the <strong> markup. |
| 36 | return $this->l->t('You have a <strong>file to sign</strong>'); |
| 37 | } |
| 38 | } |