@@ -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 = []; |
@@ -111,6 +111,9 @@ discard block |
||
111 | 111 | $this->findTag($tag)->setDate($date); |
112 | 112 | } |
113 | 113 | |
114 | + /** |
|
115 | + * @param string $tag |
|
116 | + */ |
|
114 | 117 | public function addNote($tag, $note) |
115 | 118 | { |
116 | 119 | $this->findTag($tag)->findNote($note); |
@@ -126,12 +129,21 @@ discard block |
||
126 | 129 | $this->_hashes[(string) $hash] = $label; |
127 | 130 | } |
128 | 131 | |
132 | + /** |
|
133 | + * @param string $tag |
|
134 | + * @param string $note |
|
135 | + */ |
|
129 | 136 | public function addCommit($tag, $note, $hash, $label = null) |
130 | 137 | { |
131 | 138 | $this->addHash($hash, $label); |
132 | 139 | $this->findTag($tag)->findNote($note)->findCommit($hash)->setLabel($label); |
133 | 140 | } |
134 | 141 | |
142 | + /** |
|
143 | + * @param string $tag |
|
144 | + * @param string $note |
|
145 | + * @param string $hash |
|
146 | + */ |
|
135 | 147 | public function addComment($tag, $note, $hash, $text = null) |
136 | 148 | { |
137 | 149 | $this->findTag($tag)->findNote($note)->findCommit($hash)->addComment($text); |