2016-08-08 17:31:26 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2026-02-09 04:53:58 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2016-08-08 17:31:26 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-08-08 17:31:26 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\Settings;
|
|
|
|
|
|
2017-01-19 04:37:17 -05:00
|
|
|
use OCP\Settings\IIconSection;
|
2025-12-02 05:39:50 -05:00
|
|
|
use Override;
|
2016-08-08 17:31:26 -04:00
|
|
|
|
2017-01-19 04:37:17 -05:00
|
|
|
class Section implements IIconSection {
|
2025-11-17 09:32:54 -05:00
|
|
|
public function __construct(
|
2025-12-02 05:39:50 -05:00
|
|
|
private string $id,
|
|
|
|
|
private string $name,
|
|
|
|
|
private int $priority,
|
|
|
|
|
private string $icon = '',
|
2025-11-17 09:32:54 -05:00
|
|
|
) {
|
2016-08-08 17:31:26 -04:00
|
|
|
}
|
|
|
|
|
|
2025-12-02 05:39:50 -05:00
|
|
|
#[Override]
|
|
|
|
|
public function getID(): string {
|
2016-08-08 17:31:26 -04:00
|
|
|
return $this->id;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-02 05:39:50 -05:00
|
|
|
#[Override]
|
|
|
|
|
public function getName(): string {
|
2016-08-08 17:31:26 -04:00
|
|
|
return $this->name;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-02 05:39:50 -05:00
|
|
|
#[Override]
|
|
|
|
|
public function getPriority(): int {
|
2016-08-08 17:31:26 -04:00
|
|
|
return $this->priority;
|
|
|
|
|
}
|
2017-01-19 04:37:17 -05:00
|
|
|
|
2025-12-02 05:39:50 -05:00
|
|
|
#[Override]
|
|
|
|
|
public function getIcon(): string {
|
2017-01-19 04:37:17 -05:00
|
|
|
return $this->icon;
|
|
|
|
|
}
|
2016-08-08 17:31:26 -04:00
|
|
|
}
|