Passed
Push — master ( f63d0b...f41ba3 )
by Jean-Christophe
10:17
created

GitFile::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Ubiquity\utils\git;
4
5
class GitFile {
6
	private $name;
7
	private $status;
8
	public function __construct($name="",$status=""){
9
		$this->name=$name;
10
		$this->status=$status;
11
	}
12
	/**
13
	 * @return mixed
14
	 */
15
	public function getName() {
16
		return $this->name;
17
	}
18
19
	/**
20
	 * @return string
21
	 */
22
	public function getStatus() {
23
		return $this->status;
24
	}
25
26
	/**
27
	 * @param mixed $name
28
	 */
29
	public function setName($name) {
30
		$this->name = $name;
31
	}
32
33
	/**
34
	 * @param string $status
35
	 */
36
	public function setStatus($status) {
37
		$this->status = $status;
38
	}
39
40
}
41
42