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

Theme   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 44
rs 10
c 1
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 3 1
A getDirectory() 0 3 1
A setDirectory() 0 3 1
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