Completed
Push — master ( f9c1e9...2e9d45 )
by Philipp
15:33
created

Theme::setName()   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
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
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
	 * @param $name
37
	 */
38
	public function setName($name) {
39
		$this->name = $name;
40
	}
41
42
	/**
43
	 * @return string
44
	 */
45
	public function getDirectory() {
46
		return $this->directory;
47
	}
48
49
	/**
50
	 * @param string $directory
51
	 */
52
	public function setDirectory($directory) {
53
		$this->directory = $directory;
54
	}
55
}
56