1 | <?php |
||
22 | class Note |
||
23 | { |
||
24 | /** |
||
25 | * @var string note |
||
26 | */ |
||
27 | protected $_note; |
||
28 | |||
29 | /** |
||
30 | * @var Commit[] array of commits |
||
31 | */ |
||
32 | protected $_commits = []; |
||
33 | |||
34 | 3 | public function __construct($note, $commits = []) |
|
39 | |||
40 | 3 | public function findCommit($hash) |
|
48 | |||
49 | public function removeCommit($hash) |
||
53 | |||
54 | public function removeCommits($hashes) |
||
60 | |||
61 | /** |
||
62 | * Appends commit along with comments. |
||
63 | * @param Commit commit object |
||
64 | */ |
||
65 | 1 | public function addCommit(Commit $commit) |
|
71 | |||
72 | /** |
||
73 | * Appends commits along with comments. |
||
74 | * @param Commit[] array of commits |
||
75 | */ |
||
76 | 1 | public function addCommits(array $commits) |
|
82 | |||
83 | /** |
||
84 | * Returns commits. |
||
85 | * @return Commit[] |
||
86 | */ |
||
87 | 3 | public function getCommits() |
|
91 | |||
92 | public function setNote($value) |
||
96 | |||
97 | 3 | public function getNote() |
|
101 | } |
||
102 |