nextcloud/lib/private/Settings/Section.php
Carl Schwan c96ece0bcb
refactor: Add more typing
- repairs job
- database
- redis

And remove Helpertest which was unused outside of some tests.

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2026-02-06 13:55:39 +01:00

40 lines
690 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Settings;
use OCP\Settings\IIconSection;
use Override;
class Section implements IIconSection {
public function __construct(
private string $id,
private string $name,
private int $priority,
private string $icon = '',
) {
}
#[Override]
public function getID(): string {
return $this->id;
}
#[Override]
public function getName(): string {
return $this->name;
}
#[Override]
public function getPriority(): int {
return $this->priority;
}
#[Override]
public function getIcon(): string {
return $this->icon;
}
}