1 | <?php |
||
17 | class SimpleRepoFacade implements ObjectRepoFacade |
||
18 | { |
||
19 | private $repoFacade; |
||
20 | |||
21 | private $githubRepoConverter; |
||
22 | private $githubBranchConverter; |
||
23 | private $githubTagConverter; |
||
24 | private $githubPullRequestConverter; |
||
25 | private $githubCommitConverter; |
||
26 | private $githubCommitStatusConverter; |
||
27 | |||
28 | private $githubIssueConverter; |
||
29 | private $githubMilestoneConverter; |
||
30 | |||
31 | /** |
||
32 | * SimpleRepoFacade constructor. |
||
33 | * |
||
34 | * @param $repoFacade |
||
35 | * @param $githubRepoConverter |
||
36 | * @param $githubBranchConverter |
||
37 | * @param $githubTagConverter |
||
38 | * @param $githubPullRequestConverter |
||
39 | * @param $githubCommitConverter |
||
40 | * @param $githubCommitStatusConverter |
||
41 | * @param $githubIssueConverter |
||
42 | * @param $githubMilestoneConverter |
||
43 | */ |
||
44 | public function __construct( |
||
65 | |||
66 | /** |
||
67 | * Fetches GithubRepo details. |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | public function fetchDetails() |
||
77 | |||
78 | /** |
||
79 | * Fetches GithubBranch details. |
||
80 | * |
||
81 | * @param $branchName |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | public function fetchBranch($branchName) |
||
91 | |||
92 | /** |
||
93 | * @return array |
||
94 | */ |
||
95 | public function fetchAllBranches() |
||
106 | |||
107 | /** |
||
108 | * @return array |
||
109 | */ |
||
110 | public function fetchAllTags() |
||
121 | |||
122 | /** |
||
123 | * Fetches GithubCommit details. |
||
124 | * |
||
125 | * @param $commitSha |
||
126 | * |
||
127 | * @return array |
||
128 | */ |
||
129 | public function fetchCommit($commitSha) |
||
135 | |||
136 | /** |
||
137 | * Fetches GithubCommit status. |
||
138 | * |
||
139 | * @param $commitSha |
||
140 | * |
||
141 | * @return array |
||
142 | */ |
||
143 | public function fetchCommitStatus($commitSha) |
||
155 | |||
156 | /** |
||
157 | * Fetches list of GithubCommit statuses. |
||
158 | * |
||
159 | * @param $commitSha |
||
160 | * |
||
161 | * @return array |
||
162 | */ |
||
163 | public function fetchCommitStatuses($commitSha) |
||
175 | |||
176 | /** |
||
177 | * @return array |
||
178 | */ |
||
179 | public function fetchAllPullRequests() |
||
190 | |||
191 | /** |
||
192 | * @return array |
||
193 | */ |
||
194 | public function fetchAllMilestones() |
||
205 | |||
206 | /** |
||
207 | * @return array |
||
208 | */ |
||
209 | public function fetchAllIssues() |
||
220 | } |
||
221 |