1 | <?php |
||
18 | class Builder |
||
19 | { |
||
20 | /** |
||
21 | * @var string current tag |
||
22 | */ |
||
23 | protected $_tag = ''; |
||
24 | |||
25 | /** |
||
26 | * @var string current note |
||
27 | */ |
||
28 | protected $_note = ''; |
||
29 | |||
30 | /** |
||
31 | * @var string current commit's hash |
||
32 | */ |
||
33 | protected $_hash = ''; |
||
34 | |||
35 | /** |
||
36 | * @var ConfigInterface config object |
||
37 | */ |
||
38 | protected $_config; |
||
39 | |||
40 | /** |
||
41 | * @var History history object |
||
42 | */ |
||
43 | protected $_history; |
||
44 | |||
45 | public function __construct(ConfigInterface $config, History $history = null) |
||
50 | |||
51 | public function setHistory(History $history = null) |
||
55 | |||
56 | public function getHistory() |
||
60 | |||
61 | public function setTag($tag) |
||
66 | |||
67 | public function setNote($note) |
||
72 | |||
73 | public function setHash($hash) |
||
80 | |||
81 | public function getTag() |
||
85 | |||
86 | public function getNote() |
||
90 | |||
91 | public function getHash() |
||
95 | |||
96 | public function addHeader($header) |
||
100 | |||
101 | public function addTag($tag, $date = null) |
||
107 | |||
108 | public function addNote($note) |
||
113 | |||
114 | public function addCommit($hash, $label) |
||
122 | |||
123 | public function addComment($comment) |
||
127 | |||
128 | public function addLink($link, $href) |
||
132 | |||
133 | public function getLastTag() |
||
137 | |||
138 | public function getInitTag() |
||
142 | |||
143 | public static function skipCommit(Commit $commit) |
||
170 | } |
||
171 |