1 | <?php |
||
11 | class Events extends AbstractActivity |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * List public events |
||
16 | * |
||
17 | * @link https://developer.github.com/v3/activity/events/#list-public-events |
||
18 | * @return array |
||
19 | */ |
||
20 | public function listPublicEvents(): array |
||
24 | |||
25 | /** |
||
26 | * List repository events |
||
27 | * |
||
28 | * @link https://developer.github.com/v3/activity/events/#list-repository-events |
||
29 | * @return array |
||
30 | */ |
||
31 | public function listRepositoryEvents(): array |
||
37 | |||
38 | /** |
||
39 | * List issue events for a repository |
||
40 | * |
||
41 | * @link https://developer.github.com/v3/activity/events/#list-issue-events-for-a-repository |
||
42 | * @return array |
||
43 | */ |
||
44 | public function listIssueEvents(): array |
||
49 | |||
50 | /** |
||
51 | * List public events for a network of repositories |
||
52 | * |
||
53 | * @link https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories |
||
54 | * @return array |
||
55 | */ |
||
56 | public function listPublicNetworkEvents(): array |
||
61 | |||
62 | /** |
||
63 | * List public events for an organization |
||
64 | * |
||
65 | * @link https://developer.github.com/v3/activity/events/#list-public-events-for-an-organization |
||
66 | * |
||
67 | * @param string $organization |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | public function listPublicOrganizationEvents(string $organization): array |
||
75 | |||
76 | /** |
||
77 | * List events that a user has received |
||
78 | * |
||
79 | * @link https://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received |
||
80 | * |
||
81 | * @param string $username |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | public function listUserReceiveEvents(string $username): array |
||
89 | |||
90 | /** |
||
91 | * List public events that a user has received |
||
92 | * |
||
93 | * @link https://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received |
||
94 | * |
||
95 | * @param string $username |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function listPublicUserReceiveEvents(string $username): array |
||
103 | |||
104 | /** |
||
105 | * List events performed by a user |
||
106 | * |
||
107 | * @link https://developer.github.com/v3/activity/events/#list-events-performed-by-a-user |
||
108 | * |
||
109 | * @param string $username |
||
110 | * |
||
111 | * @return array |
||
112 | */ |
||
113 | public function listUserPerformedEvents(string $username): array |
||
117 | |||
118 | /** |
||
119 | * List public events performed by a user |
||
120 | * |
||
121 | * @link https://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user |
||
122 | * |
||
123 | * @param string $username |
||
124 | * |
||
125 | * @return array |
||
126 | */ |
||
127 | public function listPublicUserPerformedEvents(string $username): array |
||
131 | |||
132 | /** |
||
133 | * List events for an organization |
||
134 | * |
||
135 | * @link https://developer.github.com/v3/activity/events/#list-events-for-an-organization |
||
136 | * |
||
137 | * @param string $username |
||
138 | * @param string $organization |
||
139 | * |
||
140 | * @return array |
||
141 | */ |
||
142 | public function listOrganizationEvents(string $username, string $organization): array |
||
147 | } |