Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | interface ProviderInterface |
||
6 | { |
||
7 | public function tplUser($obj); |
||
8 | |||
9 | public function tplRepository($repo, $slug = false); |
||
10 | |||
11 | public function tplIssue($obj, $productBacklogId); |
||
12 | |||
13 | public function tplOrganization($obj); |
||
14 | |||
15 | public function readRepositories($page, &$repos); |
||
16 | |||
17 | public function createOrUpdateRepository($owner, $obj, $oldTitle = null); |
||
18 | |||
19 | public function organization($login); |
||
20 | |||
21 | public function readCollaborators($owner, $repo, $providerId = null); |
||
22 | |||
23 | public function createBranches($owner, $product_backlog_id, $repo, $providerId = null); |
||
24 | |||
25 | public function readIssues(); |
||
26 | |||
27 | public function createOrUpdateIssue($obj); |
||
28 | |||
29 | public function createOrUpdateIssueComment($obj, $verb = 'POST'); |
||
30 | |||
31 | public function deleteIssueComment($obj); |
||
32 | } |
||
33 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.