1 | <?php |
||
9 | abstract class Commit implements CommitInterface |
||
10 | { |
||
11 | use TransportAwareTrait; |
||
12 | |||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | protected $id; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $sha; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $branch; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $message; |
||
32 | |||
33 | /** |
||
34 | * @var DateTimeInterface |
||
35 | */ |
||
36 | protected $committed_at; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $author_name; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | protected $author_email; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $committer_name; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | protected $committer_email; |
||
57 | |||
58 | /** |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $compare_url; |
||
62 | |||
63 | /** |
||
64 | * @return int |
||
65 | */ |
||
66 | public function id() : int |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function sha() : string |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function branch() : string |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function message() : string |
||
94 | |||
95 | /** |
||
96 | * @return DateTimeInterface |
||
97 | */ |
||
98 | public function committedAt() : DateTimeInterface |
||
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | public function authorName() : string |
||
110 | |||
111 | /** |
||
112 | * @return string |
||
113 | */ |
||
114 | public function authorEmail() : string |
||
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | public function committerName() : string |
||
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | public function committerEmail() : string |
||
134 | |||
135 | /** |
||
136 | * @return string |
||
137 | */ |
||
138 | public function compareUrl() : string |
||
142 | } |
||
143 |