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

GitCommit::setCDate()   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 1
crap 2
1
<?php
2
3
namespace Ubiquity\utils\git;
4
5
class GitCommit {
6
	private $cHash;
7
	private $lHash;
8
	private $author;
9
	private $cDate;
10
	private $summary;
11
	private $pushed;
12
	
13
	public function __construct($cHash="",$author="",$cDate="",$summary="",$lHash="",$pushed=true){
14
		$this->cHash=$cHash;
15
		$this->lHash=$lHash;
16
		$this->author=$author;
17
		$this->cDate=$cDate;
18
		$this->summary=$summary;
19
		$this->pushed=$pushed;
20
	}
21
	/**
22
	 * @return string
23
	 */
24
	public function getLHash() {
25
		return $this->lHash;
26
	}
27
28
	/**
29
	 * @return string
30
	 */
31
	public function getCHash() {
32
		return $this->cHash;
33
	}
34
35
	/**
36
	 * @return string
37
	 */
38
	public function getAuthor() {
39
		return $this->author;
40
	}
41
42
	/**
43
	 * @return string
44
	 */
45
	public function getCDate() {
46
		return $this->cDate;
47
	}
48
49
	/**
50
	 * @return string
51
	 */
52
	public function getSummary() {
53
		return $this->summary;
54
	}
55
56
	/**
57
	 * @param string $cHash
58
	 */
59
	public function setCHash($cHash) {
60
		$this->cHash = $cHash;
61
	}
62
63
	/**
64
	 * @param string $author
65
	 */
66
	public function setAuthor($author) {
67
		$this->author = $author;
68
	}
69
70
	/**
71
	 * @param string $cDate
72
	 */
73
	public function setCDate($cDate) {
74
		$this->cDate = $cDate;
75
	}
76
77
	/**
78
	 * @param string $summary
79
	 */
80
	public function setSummary($summary) {
81
		$this->summary = $summary;
82
	}
83
	/**
84
	 * @return string
85
	 */
86
	public function getPushed() {
87
		return $this->pushed;
88
	}
89
90
	/**
91
	 * @param string $pushed
92
	 */
93
	public function setPushed($pushed) {
94
		$this->pushed = $pushed;
95
	}
96
97
	
98
}
99
100