| Total Complexity | 12 |
| Total Lines | 90 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 100 |