libresign/lib/Activity/Settings/FileToSign.php
Vitor Mattos 034ff9ecbb
fix: psalm issues about override
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-10-07 18:23:41 -03:00

37 lines
797 B
PHP

<?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\SendSignNotificationEvent;
use OCP\IL10N;
class FileToSign extends LibresignActivitySettings {
public function __construct(
protected IL10N $l,
) {
}
/**
* @return string Lowercase a-z and underscore only identifier. The type of table activity
* @since 20.0.0
*/
#[\Override]
public function getIdentifier(): string {
return SendSignNotificationEvent::FILE_TO_SIGN;
}
/**
* @return string A translated string
* @since 11.0.0
*/
#[\Override]
public function getName(): string {
return $this->l->t('You have a <strong>file to sign</strong>');
}
}