1 | <?php declare(strict_types=1); |
||
24 | class Groups extends AbstractResource implements \IteratorAggregate |
||
25 | { |
||
26 | const TYPE_ONE_TO_ONE = 'ONE_TO_ONE'; |
||
27 | const TYPE_GITHUB_REPO = 'GH_REPO'; |
||
28 | const TYPE_GITHUB_ORG = 'GH_ORG'; |
||
29 | const TYPE_GITHUB_USER = 'GH_USER'; |
||
30 | |||
31 | /** |
||
32 | * List groups the current user is in. |
||
33 | * Parameters: none |
||
34 | * |
||
35 | * @return array |
||
36 | * @throws \RuntimeException |
||
37 | * @throws \InvalidArgumentException |
||
38 | */ |
||
39 | public function all(): array |
||
43 | |||
44 | /** |
||
45 | * List of rooms nested under the specified group. |
||
46 | * |
||
47 | * @param string $groupId |
||
48 | * @return array |
||
49 | * @throws \RuntimeException |
||
50 | * @throws \InvalidArgumentException |
||
51 | */ |
||
52 | public function rooms(string $groupId): array |
||
56 | |||
57 | /** |
||
58 | * @return \Generator |
||
59 | * @throws \RuntimeException |
||
60 | * @throws \InvalidArgumentException |
||
61 | */ |
||
62 | public function getIterator(): \Generator |
||
70 | } |
||
71 |