1 | <?php |
||
13 | class Starring extends AbstractActivity |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * List Stargazers |
||
18 | * |
||
19 | * @link https://developer.github.com/v3/activity/starring/#list-stargazers |
||
20 | * @return array |
||
21 | */ |
||
22 | public function listStargazers(): array |
||
27 | |||
28 | /** |
||
29 | * List repositories being starred |
||
30 | * |
||
31 | * @link https://developer.github.com/v3/activity/starring/#list-repositories-being-starred |
||
32 | * |
||
33 | * @param string $sort |
||
34 | * @param string $direction |
||
35 | * @param string $username |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function listRepositories(string $sort = AbstractApi::SORT_CREATED, |
||
50 | |||
51 | /** |
||
52 | * Check if you are starring a repository |
||
53 | * |
||
54 | * @link https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function checkYouAreStarringRepository(): bool |
||
69 | |||
70 | /** |
||
71 | * Star a repository |
||
72 | * |
||
73 | * @link https://developer.github.com/v3/activity/starring/#star-a-repository |
||
74 | * @return bool |
||
75 | */ |
||
76 | public function starRepository(): bool |
||
88 | |||
89 | /** |
||
90 | * Unstar a repository |
||
91 | * |
||
92 | * @link https://developer.github.com/v3/activity/starring/#unstar-a-repository |
||
93 | * @return bool |
||
94 | */ |
||
95 | public function unStarRepository(): bool |
||
107 | } |