1 | <?php |
||
26 | class Groups extends AbstractResource implements \IteratorAggregate |
||
27 | { |
||
28 | const TYPE_ONE_TO_ONE = 'ONE_TO_ONE'; |
||
29 | const TYPE_GITHUB_REPO = 'GH_REPO'; |
||
30 | const TYPE_GITHUB_ORG = 'GH_ORG'; |
||
31 | const TYPE_GITHUB_USER = 'GH_USER'; |
||
32 | |||
33 | /** |
||
34 | * List groups the current user is in. |
||
35 | * Parameters: none |
||
36 | * |
||
37 | * @return array |
||
38 | * @throws \Throwable |
||
39 | * @throws \Exception |
||
40 | * @throws \InvalidArgumentException |
||
41 | */ |
||
42 | public function all(): array |
||
46 | |||
47 | /** |
||
48 | * List of rooms nested under the specified group. |
||
49 | * |
||
50 | * @param string $groupId |
||
51 | * @return array |
||
52 | * @throws \Throwable |
||
53 | * @throws \Exception |
||
54 | * @throws \InvalidArgumentException |
||
55 | */ |
||
56 | public function rooms(string $groupId): array |
||
60 | |||
61 | /** |
||
62 | * @return \Generator |
||
63 | * @throws \Throwable |
||
64 | * @throws \Exception |
||
65 | * @throws \InvalidArgumentException |
||
66 | */ |
||
67 | public function getIterator(): \Generator |
||
75 | } |
||
76 |