Completed
Push — master ( ab4fd5...664d98 )
by Victor
20:52 queued 01:47
created

Theme::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 3
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Philipp Schaffrath <[email protected]>
4
 *
5
 * @copyright Copyright (c) 2018, ownCloud GmbH
6
 * @license AGPL-3.0
7
 *
8
 * This code is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU Affero General Public License, version 3,
10
 * as published by the Free Software Foundation.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
 * GNU Affero General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Affero General Public License, version 3,
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
19
 */
20
namespace OC\Theme;
21
22
use OCP\Theme\ITheme;
23
24
class Theme implements ITheme {
25
26
	/**
27
	 * @var string
28
	 */
29
	private $name;
30
31
	/**
32
	 * @var string
33
	 */
34
	private $baseDirectory;
35
36
	/**
37
	 * @var string
38
	 */
39
	private $directory;
40
41
	/**
42
	 * @var string
43
	 */
44
	private $webPath;
45
46
	/**
47
	 * @param string $name
48
	 * @param string $directory
49
	 * @param string $webPath
50
	 */
51
	public function __construct($name = '', $directory = '', $webPath = '') {
52
		$this->name = $name;
53
		$this->directory = $directory;
54
		$this->webPath = $webPath;
55
	}
56
57
	/**
58
	 * @return string
59
	 */
60
	public function getName() {
61
		return $this->name;
62
	}
63
64
	/**
65
	 * @param string $baseDirectory
66
	 * @return string
67
	 */
68
	public function setBaseDirectory($baseDirectory) {
69
		$this->baseDirectory = $baseDirectory;
70
	}
71
72
	/**
73
	 * @return string
74
	 */
75
	public function getBaseDirectory() {
76
		return $this->baseDirectory;
77
	}
78
79
	/**
80
	 * @return string
81
	 */
82
	public function getDirectory() {
83
		return $this->directory;
84
	}
85
86
	/**
87
	 * @return string
88
	 */
89
	public function getWebPath() {
90
		return $this->webPath;
91
	}
92
93
	/**
94
	 * @param string $name
95
	 */
96
	public function setName($name) {
97
		$this->name = $name;
98
	}
99
100
	/**
101
	 * @param string $directory
102
	 */
103
	public function setDirectory($directory) {
104
		$this->directory = $directory;
105
	}
106
107
	/**
108
	 * @param string $webPath
109
	 */
110
	public function setWebPath($webPath) {
111
		$this->webPath = $webPath;
112
	}
113
}
114