1 | <?php declare(strict_types=1); |
||
21 | abstract class Compare extends AbstractResource implements CompareInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $url; |
||
27 | |||
28 | /** |
||
29 | * @var Repository\Commit |
||
30 | */ |
||
31 | protected $base_commit; |
||
32 | |||
33 | /** |
||
34 | * @var Repository\Commit |
||
35 | */ |
||
36 | protected $merge_base_commit; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $status; |
||
42 | |||
43 | /** |
||
44 | * @var int |
||
45 | */ |
||
46 | protected $ahead_by; |
||
47 | |||
48 | /** |
||
49 | * @var int |
||
50 | */ |
||
51 | protected $behind_by; |
||
52 | |||
53 | /** |
||
54 | * @var int |
||
55 | */ |
||
56 | protected $total_commits; |
||
57 | |||
58 | /** |
||
59 | * @var Repository\Commit |
||
60 | */ |
||
61 | protected $commits; |
||
62 | |||
63 | /** |
||
64 | * @var Repository\Commit\File |
||
65 | */ |
||
66 | protected $files; |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function url(): string |
||
75 | |||
76 | /** |
||
77 | * @return Repository\Commit |
||
78 | */ |
||
79 | public function baseCommit(): Repository\Commit |
||
83 | |||
84 | /** |
||
85 | * @return Repository\Commit |
||
86 | */ |
||
87 | public function mergeBaseCommit(): Repository\Commit |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | public function status(): string |
||
99 | |||
100 | /** |
||
101 | * @return int |
||
102 | */ |
||
103 | public function aheadBy(): int |
||
107 | |||
108 | /** |
||
109 | * @return int |
||
110 | */ |
||
111 | public function behindBy(): int |
||
115 | |||
116 | /** |
||
117 | * @return int |
||
118 | */ |
||
119 | public function totalCommits(): int |
||
123 | |||
124 | /** |
||
125 | * @return Repository\Commit |
||
126 | */ |
||
127 | public function commits(): Repository\Commit |
||
131 | |||
132 | /** |
||
133 | * @return Repository\Commit\File |
||
134 | */ |
||
135 | public function files(): Repository\Commit\File |
||
139 | } |
||
140 |