1 | <?php |
||
18 | class SimpleRepoFacade implements ObjectRepoFacade |
||
19 | { |
||
20 | /** |
||
21 | * @var RepoFacade |
||
22 | */ |
||
23 | private $repoFacade; |
||
24 | |||
25 | /** |
||
26 | * @var GithubRepoConverter |
||
27 | */ |
||
28 | private $githubRepoConverter; |
||
29 | /** |
||
30 | * @var GithubBranchConverter |
||
31 | */ |
||
32 | private $githubBranchConverter; |
||
33 | /** |
||
34 | * @var GithubTagConverter |
||
35 | */ |
||
36 | private $githubTagConverter; |
||
37 | /** |
||
38 | * @var GithubPullRequestConverter |
||
39 | */ |
||
40 | private $githubPullRequestConverter; |
||
41 | /** |
||
42 | * @var GithubCommitConverter |
||
43 | */ |
||
44 | private $githubCommitConverter; |
||
45 | /** |
||
46 | * @var GithubCommitStatusConverter |
||
47 | */ |
||
48 | private $githubCommitStatusConverter; |
||
49 | |||
50 | /** |
||
51 | * @var GithubIssueConverter |
||
52 | */ |
||
53 | private $githubIssueConverter; |
||
54 | /** |
||
55 | * @var GithubMilestoneConverter |
||
56 | */ |
||
57 | private $githubMilestoneConverter; |
||
58 | |||
59 | /** |
||
60 | * SimpleRepoFacade constructor. |
||
61 | * |
||
62 | * @param $repoFacade |
||
63 | * @param $githubRepoConverter |
||
64 | * @param $githubBranchConverter |
||
65 | * @param $githubTagConverter |
||
66 | * @param $githubPullRequestConverter |
||
67 | * @param $githubCommitConverter |
||
68 | * @param $githubCommitStatusConverter |
||
69 | * @param $githubIssueConverter |
||
70 | * @param $githubMilestoneConverter |
||
71 | */ |
||
72 | public function __construct( |
||
93 | |||
94 | /** |
||
95 | * Fetches GithubRepo details. |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function fetchDetails() |
||
105 | |||
106 | /** |
||
107 | * Fetches GithubBranch details. |
||
108 | * |
||
109 | * @param $branchName |
||
110 | * |
||
111 | * @return array |
||
112 | */ |
||
113 | public function fetchBranch($branchName) |
||
119 | |||
120 | /** |
||
121 | * @return array |
||
122 | */ |
||
123 | public function fetchAllBranches() |
||
134 | |||
135 | /** |
||
136 | * @return array |
||
137 | */ |
||
138 | public function fetchAllTags() |
||
149 | |||
150 | /** |
||
151 | * Fetches GithubCommit details. |
||
152 | * |
||
153 | * @param $commitSha |
||
154 | * |
||
155 | * @return array |
||
156 | */ |
||
157 | public function fetchCommit($commitSha) |
||
163 | |||
164 | /** |
||
165 | * Fetches GithubCommit status. |
||
166 | * |
||
167 | * @param $commitSha |
||
168 | * |
||
169 | * @return array |
||
170 | */ |
||
171 | public function fetchCommitStatus($commitSha) |
||
183 | |||
184 | /** |
||
185 | * Fetches list of GithubCommit statuses. |
||
186 | * |
||
187 | * @param $commitSha |
||
188 | * |
||
189 | * @return array |
||
190 | */ |
||
191 | public function fetchCommitStatuses($commitSha) |
||
203 | |||
204 | /** |
||
205 | * @return array |
||
206 | */ |
||
207 | public function fetchAllPullRequests() |
||
218 | |||
219 | /** |
||
220 | * @return array |
||
221 | */ |
||
222 | public function fetchAllMilestones() |
||
233 | |||
234 | /** |
||
235 | * @return array |
||
236 | */ |
||
237 | public function fetchAllIssues() |
||
248 | } |
||
249 |