@@ -69,34 +69,55 @@ |
||
69 | 69 | return $this->_hash; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $header |
|
74 | + */ |
|
72 | 75 | public function addHeader($header) |
73 | 76 | { |
74 | 77 | $this->getHistory()->addHeader($header); |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $tag |
|
82 | + * @param string $date |
|
83 | + */ |
|
77 | 84 | public function addTag($tag, $date = null) |
78 | 85 | { |
79 | 86 | $this->setTag($tag); |
80 | 87 | $this->getHistory()->addTag($tag, $date); |
81 | 88 | } |
82 | 89 | |
90 | + /** |
|
91 | + * @param string $note |
|
92 | + */ |
|
83 | 93 | public function addNote($note) |
84 | 94 | { |
85 | 95 | $this->setNote($note); |
86 | 96 | $this->getHistory()->addNote($this->getTag(), $note, $label); |
87 | 97 | } |
88 | 98 | |
99 | + /** |
|
100 | + * @param string $hash |
|
101 | + * @param string $label |
|
102 | + */ |
|
89 | 103 | public function addCommit($hash, $label) |
90 | 104 | { |
91 | 105 | $this->setHash($hash); |
92 | 106 | $this->getHistory()->addCommit($this->getTag(), $this->getNote(), $hash, $label); |
93 | 107 | } |
94 | 108 | |
109 | + /** |
|
110 | + * @param string $comment |
|
111 | + */ |
|
95 | 112 | public function addComment($comment) |
96 | 113 | { |
97 | 114 | $this->getHistory()->addComment($this->getTag(), $this->getNote(), $this->getHash(), $comment); |
98 | 115 | } |
99 | 116 | |
117 | + /** |
|
118 | + * @param string $link |
|
119 | + * @param string $href |
|
120 | + */ |
|
100 | 121 | public function addLink($link, $href) |
101 | 122 | { |
102 | 123 | $this->getHistory()->addLink($link, $href); |
@@ -76,6 +76,9 @@ discard block |
||
76 | 76 | $this->findTag($tag)->setDate($date); |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $tag |
|
81 | + */ |
|
79 | 82 | public function addNote($tag, $note) |
80 | 83 | { |
81 | 84 | $this->findTag($tag)->findNote($note); |
@@ -91,12 +94,21 @@ discard block |
||
91 | 94 | $this->_hashes[(string) $hash] = $label; |
92 | 95 | } |
93 | 96 | |
97 | + /** |
|
98 | + * @param string $tag |
|
99 | + * @param string $note |
|
100 | + */ |
|
94 | 101 | public function addCommit($tag, $note, $hash, $label = null) |
95 | 102 | { |
96 | 103 | $this->addHash($hash, $label); |
97 | 104 | $this->findTag($tag)->findNote($note)->findCommit($hash)->setLabel($label); |
98 | 105 | } |
99 | 106 | |
107 | + /** |
|
108 | + * @param string $tag |
|
109 | + * @param string $note |
|
110 | + * @param string $hash |
|
111 | + */ |
|
100 | 112 | public function addComment($tag, $note, $hash, $text = null) |
101 | 113 | { |
102 | 114 | $this->findTag($tag)->findNote($note)->findCommit($hash)->addComment($text); |
@@ -159,6 +171,9 @@ discard block |
||
159 | 171 | return $res; |
160 | 172 | } |
161 | 173 | |
174 | + /** |
|
175 | + * @param string $key |
|
176 | + */ |
|
162 | 177 | public static function arrayPop(&$array, $key) |
163 | 178 | { |
164 | 179 | $res = $array[$key]; |
@@ -224,6 +239,9 @@ discard block |
||
224 | 239 | return $date ? date(' Y-m-d', strtotime($date)) : ''; |
225 | 240 | } |
226 | 241 | |
242 | + /** |
|
243 | + * @param string $string |
|
244 | + */ |
|
227 | 245 | public static function renderHeader($string) |
228 | 246 | { |
229 | 247 | $res = ''; |
@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class Parser extends Builder |
6 | 6 | { |
7 | + /** |
|
8 | + * @param string $path |
|
9 | + */ |
|
7 | 10 | public function parsePath($path, $minimal = null) |
8 | 11 | { |
9 | 12 | $this->addTag($this->getLastTag()); |
@@ -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 = []; |