blob: 7d0f567ca15d2f6fdca39059f97c73bede14aea2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Dashboard\Model;
/**
* Option for displaying a widget
*
* @since 25.0.0
*/
class WidgetOptions {
private bool $roundItemIcons;
/**
* @param bool $roundItemIcons
* @since 25.0.0
*/
public function __construct(bool $roundItemIcons) {
$this->roundItemIcons = $roundItemIcons;
}
/**
* Get the default set of options
*
* @return WidgetOptions
* @since 25.0.0
*/
public static function getDefault(): WidgetOptions {
return new WidgetOptions(false);
}
/**
* Whether the clients should render icons for widget items as round icons
*
* @return bool
* @since 25.0.0
*/
public function withRoundItemIcons(): bool {
return $this->roundItemIcons;
}
}
|