nextcloud/lib/public/IServerInfo.php
Benjamin Gaussorgues 60ce92a697
feat(utils): add getter for serverid with proper default
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-12 13:53:10 +02:00

33 lines
562 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP;
use OCP\AppFramework\Attribute\Consumable;
/**
* @since 34.0.1
*/
#[Consumable(since: '34.0.1')]
interface IServerInfo {
/**
* Returns configured Server ID or use default fallback
*
* @return int<0,511>
* @since 34.0.1
*/
public function getServerId(): int;
/**
* Returns current server hostname
*
* @since 34.0.1
*/
public function getHostname(): string;
}