1 | <?php declare(strict_types=1); |
||
24 | abstract class Commit extends AbstractResource implements CommitInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $url; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $sha; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $html_url; |
||
40 | |||
41 | /** |
||
42 | * @var GitCommitInterface |
||
43 | */ |
||
44 | protected $commit; |
||
45 | |||
46 | /** |
||
47 | * @var UserInterface |
||
48 | */ |
||
49 | protected $author; |
||
50 | |||
51 | /** |
||
52 | * @var UserInterface |
||
53 | */ |
||
54 | protected $comitter; |
||
55 | |||
56 | /** |
||
57 | * @var TreeInterface |
||
58 | */ |
||
59 | protected $parents; |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 4 | public function url() : string |
|
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | 4 | public function sha() : string |
|
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | 4 | public function htmlUrl() : string |
|
84 | |||
85 | /** |
||
86 | * @return GitCommitInterface |
||
87 | */ |
||
88 | public function commit() : GitCommitInterface |
||
92 | |||
93 | /** |
||
94 | * @return UserInterface |
||
95 | */ |
||
96 | public function author() : UserInterface |
||
100 | |||
101 | /** |
||
102 | * @return UserInterface |
||
103 | */ |
||
104 | public function comitter() : UserInterface |
||
108 | |||
109 | /** |
||
110 | * @return TreeInterface |
||
111 | */ |
||
112 | public function parents() : TreeInterface |
||
116 | } |
||
117 |