mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
23 lines
498 B
PHP
23 lines
498 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Libresign\Controller;
|
|
|
|
use OCP\AppFramework\OCSController;
|
|
|
|
abstract class AEnvironmentAwareController extends OCSController {
|
|
protected int $apiVersion = 1;
|
|
|
|
public function setAPIVersion(int $apiVersion): void {
|
|
$this->apiVersion = $apiVersion;
|
|
}
|
|
|
|
public function getAPIVersion(): int {
|
|
return $this->apiVersion;
|
|
}
|
|
}
|