1 | <?php |
||
14 | abstract class AbstractReporter |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Returns reporter name. |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | abstract public function getName(); |
||
23 | |||
24 | /** |
||
25 | * Generates report. |
||
26 | * |
||
27 | * @param array $bc_breaks BC breaks. |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | abstract public function generate(array $bc_breaks); |
||
32 | |||
33 | /** |
||
34 | * Groups BC breaks by type. |
||
35 | * |
||
36 | * @param array $bc_breaks BC breaks. |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | protected function groupByType(array $bc_breaks) |
||
56 | |||
57 | /** |
||
58 | * Sorts BC breaks by element. |
||
59 | * |
||
60 | * @param array $bc_breaks BC breaks. |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | protected function sortByElement(array $bc_breaks) |
||
70 | |||
71 | /** |
||
72 | * Sorts BC breaks by element. |
||
73 | * |
||
74 | * @param array $incident_a Incident A. |
||
75 | * @param array $incident_b Incident B. |
||
76 | * |
||
77 | * @return integer |
||
78 | */ |
||
79 | public function sortByElementCallback(array $incident_a, array $incident_b) |
||
83 | |||
84 | } |
||
85 |