libresign/lib/Events/SignRequestCanceledEvent.php
Vitor Mattos f4f03eed71
fix: cs
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-12-13 17:18:31 -03:00

37 lines
885 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\Events;
use OCA\Libresign\Db\File as FileEntity;
use OCA\Libresign\Db\SignRequest;
use OCA\Libresign\Service\IdentifyMethod\IIdentifyMethod;
use OCP\EventDispatcher\Event;
class SignRequestCanceledEvent extends Event {
public const SIGN_REQUEST_CANCELED = 'libresign_sign_request_canceled';
public function __construct(
private SignRequest $signRequest,
private FileEntity $libreSignFile,
private IIdentifyMethod $identifyMethod,
) {
}
public function getLibreSignFile(): FileEntity {
return $this->libreSignFile;
}
public function getSignRequest(): SignRequest {
return $this->signRequest;
}
public function getIdentifyMethod(): IIdentifyMethod {
return $this->identifyMethod;
}
}