Completed
Push — master ( 28c345...2d40e0 )
by Thomas
15:42
created

Section::getIconName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * @author Lukas Reschke <[email protected]>
4
 * @author Thomas Müller <[email protected]>
5
 * @author Tom Needham <[email protected]>
6
 *
7
 * @copyright Copyright (c) 2017, ownCloud GmbH
8
 * @license AGPL-3.0
9
 *
10
 * This code is free software: you can redistribute it and/or modify
11
 * it under the terms of the GNU Affero General Public License, version 3,
12
 * as published by the Free Software Foundation.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
 * GNU Affero General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU Affero General Public License, version 3,
20
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
21
 *
22
 */
23
24
namespace OC\Settings;
25
26
use OCP\Settings\ISection;
27
28
/**
29
 * @since 10.0
30
 */
31
class Section implements ISection {
32
33
	protected $id;
34
	protected $name;
35
	/** @var int */
36
	protected $priority;
37
	protected $icon;
38
39
	public function __construct($id, $name, $priority, $icon='settings') {
40
		$this->id = $id;
41
		$this->name = $name;
42
		$this->priority = $priority;
43
		$this->icon = $icon;
44
	}
45
46
	public function getID() {
47
		return $this->id;
48
	}
49
50
	public function getName() {
51
		return $this->name;
52
	}
53
54
	public function getPriority() {
55
		return $this->priority;
56
	}
57
58
	public function getIconName() {
59
		return $this->icon;
60
	}
61
62
}
63