@@ -11,6 +11,9 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public $indent = ' '; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param History $value |
|
| 16 | + */ |
|
| 14 | 17 | public function setHistory($value) |
| 15 | 18 | { |
| 16 | 19 | $this->_history = $value; |
@@ -46,6 +49,9 @@ discard block |
||
| 46 | 49 | return $this->renderObjects('renderLink', $this->getHistory()->getLinks()); |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $method |
|
| 54 | + */ |
|
| 49 | 55 | public function renderObjects($method, $objects) |
| 50 | 56 | { |
| 51 | 57 | $res = []; |
@@ -99,6 +99,9 @@ discard block |
||
| 99 | 99 | return $this->_comments; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | + /** |
|
| 103 | + * @param string $value |
|
| 104 | + */ |
|
| 102 | 105 | public function setDate($value) |
| 103 | 106 | { |
| 104 | 107 | $timestamp = strtotime($value); |
@@ -113,6 +116,9 @@ discard block |
||
| 113 | 116 | return $this->_date ? date('Y-m-d', $this->_date) : null; |
| 114 | 117 | } |
| 115 | 118 | |
| 119 | + /** |
|
| 120 | + * @param string $value |
|
| 121 | + */ |
|
| 116 | 122 | public function setSubject($value) |
| 117 | 123 | { |
| 118 | 124 | $this->_subject = $value; |
@@ -124,6 +130,9 @@ discard block |
||
| 124 | 130 | return $this->_subject; |
| 125 | 131 | } |
| 126 | 132 | |
| 133 | + /** |
|
| 134 | + * @param string $value |
|
| 135 | + */ |
|
| 127 | 136 | public function setAuthor($value) |
| 128 | 137 | { |
| 129 | 138 | $this->_author = $value; |
@@ -21,6 +21,9 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | class GitMerger extends Builder |
| 23 | 23 | { |
| 24 | + /** |
|
| 25 | + * @param History $history |
|
| 26 | + */ |
|
| 24 | 27 | public function mergeTo($history) |
| 25 | 28 | { |
| 26 | 29 | $this->setHistory($history); |
@@ -139,11 +139,18 @@ |
||
| 139 | 139 | $this->findTag($tag)->setDate($date); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $tag |
|
| 144 | + */ |
|
| 142 | 145 | public function findNote($tag, $note) |
| 143 | 146 | { |
| 144 | 147 | $this->findTag($tag)->findNote($note); |
| 145 | 148 | } |
| 146 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $tag |
|
| 152 | + * @param string $note |
|
| 153 | + */ |
|
| 147 | 154 | public function findCommit($tag, $note, $hash, $pre = false) |
| 148 | 155 | { |
| 149 | 156 | $this->addHash($hash); |