Completed
Push — master ( 5a81b7...a6ad21 )
by Thomas
25:30
created

Theme::getDirectory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace OC\Theme;
4
5
class Theme {
6
7
	/**
8
	 * @var string
9
	 */
10
	private $name;
11
12
	/**
13
	 * @var string
14
	 */
15
	private $directory;
16
17
	/**
18
	 * Theme constructor.
19
	 *
20
	 * @param string $name
21
	 * @param string $directory
22
	 */
23
	public function __construct($name = '', $directory = '') {
24
		$this->name = $name;
25
		$this->directory = $directory;
26
	}
27
28
	/**
29
	 * @return string
30
	 */
31
	public function getName() {
32
		return $this->name;
33
	}
34
35
	/**
36
	 * @return string
37
	 */
38
	public function getDirectory() {
39
		return $this->directory;
40
	}
41
42
	/**
43
	 * @param string $directory
44
	 */
45
	public function setDirectory($directory) {
46
		$this->directory = $directory;
47
	}
48
}
49