1 | <?php |
||
14 | abstract class AbstractGroupByMergeTemplate extends AbstractMergeTemplate |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Applies merge template to a working copy. |
||
19 | * |
||
20 | * @param string $wc_path Working copy path. |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | 4 | public function apply($wc_path) |
|
38 | |||
39 | /** |
||
40 | * Builds commit message. |
||
41 | * |
||
42 | * @param array $merged_revisions Merged revisions. |
||
43 | * @param string $relative_path Relative path. |
||
44 | * @param string $repository_url Repository url. |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 2 | protected function doGenerate(array $merged_revisions, $relative_path, $repository_url) |
|
60 | |||
61 | /** |
||
62 | * Builds group heading. |
||
63 | * |
||
64 | * @param string $source_path Source path for merge operation. |
||
65 | * @param string $target_path Target path for merge operation. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | 2 | protected function generateGroupHeading($source_path, $target_path) |
|
84 | |||
85 | /** |
||
86 | * Builds group body. |
||
87 | * |
||
88 | * @param array $revisions Revisions. |
||
89 | * @param string $source_url Source URL. |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | abstract protected function generateGroupBody(array $revisions, $source_url); |
||
94 | |||
95 | } |
||
96 |