-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathSignRequestCanceled.php
More file actions
63 lines (54 loc) · 1.12 KB
/
SignRequestCanceled.php
File metadata and controls
63 lines (54 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Libresign\Activity\Settings;
use OCA\Libresign\Events\SignRequestCanceledEvent;
use OCA\Libresign\Helper\ValidateHelper;
use OCP\IL10N;
use OCP\IUserSession;
class SignRequestCanceled extends LibresignActivitySettings {
public function __construct(
protected IL10N $l,
protected ValidateHelper $validateHelper,
protected IUserSession $userSession,
) {
}
/**
* {@inheritdoc}
*/
#[\Override]
public function getIdentifier(): string {
return SignRequestCanceledEvent::SIGN_REQUEST_CANCELED;
}
/**
* {@inheritdoc}
*/
#[\Override]
public function getName(): string {
return $this->l->t('A signature request has been <strong>canceled</strong>');
}
/**
* {@inheritdoc}
*/
#[\Override]
public function getPriority(): int {
return 51;
}
/**
* {@inheritdoc}
*/
#[\Override]
public function canChangeNotification(): bool {
return true;
}
/**
* {@inheritdoc}
*/
#[\Override]
public function canChangeMail() {
return true;
}
}