|
19 | 19 | /** |
20 | 20 | * Simple yet very cool PHP GitHub client. |
21 | 21 | * |
22 | | - * @method Api\CurrentUser currentUser() |
23 | | - * @method Api\CurrentUser me() |
24 | | - * @method Api\Enterprise ent() |
25 | | - * @method Api\Enterprise enterprise() |
26 | | - * @method Api\Miscellaneous\CodeOfConduct codeOfConduct() |
27 | | - * @method Api\Miscellaneous\Emojis emojis() |
28 | | - * @method Api\Miscellaneous\Licenses licenses() |
29 | | - * @method Api\GitData git() |
30 | | - * @method Api\GitData gitData() |
31 | | - * @method Api\Gists gist() |
32 | | - * @method Api\Gists gists() |
33 | | - * @method Api\Miscellaneous\Gitignore gitignore() |
| 22 | + * @method Api\CurrentUser currentUser() |
| 23 | + * @method Api\CurrentUser me() |
| 24 | + * @method Api\Enterprise ent() |
| 25 | + * @method Api\Enterprise enterprise() |
| 26 | + * @method Api\Miscellaneous\CodeOfConduct codeOfConduct() |
| 27 | + * @method Api\Miscellaneous\Emojis emojis() |
| 28 | + * @method Api\Miscellaneous\Licenses licenses() |
| 29 | + * @method Api\GitData git() |
| 30 | + * @method Api\GitData gitData() |
| 31 | + * @method Api\Gists gist() |
| 32 | + * @method Api\Gists gists() |
| 33 | + * @method Api\Miscellaneous\Gitignore gitignore() |
34 | 34 | * @method Api\Apps apps() |
35 | 35 | * @method Api\Issue issue() |
36 | 36 | * @method Api\Issue issues() |
|
43 | 43 | * @method Api\Organization\Projects orgProjects() |
44 | 44 | * @method Api\Organization\Projects organizationProject() |
45 | 45 | * @method Api\Organization\Projects organizationProjects() |
46 | | - * @method Api\PullRequest pr() |
47 | | - * @method Api\PullRequest pullRequest() |
48 | | - * @method Api\PullRequest pullRequests() |
49 | | - * @method Api\RateLimit rateLimit() |
50 | | - * @method Api\Repo repo() |
51 | | - * @method Api\Repo repos() |
52 | | - * @method Api\Repo repository() |
53 | | - * @method Api\Repo repositories() |
54 | | - * @method Api\Search search() |
55 | | - * @method Api\Organization\Teams team() |
56 | | - * @method Api\Organization\Teams teams() |
57 | | - * @method Api\User user() |
58 | | - * @method Api\User users() |
59 | | - * @method Api\Authorizations authorization() |
60 | | - * @method Api\Authorizations authorizations() |
61 | | - * @method Api\Meta meta() |
62 | | - * @method Api\GraphQL graphql() |
| 46 | + * @method Api\Organization\OutsideCollaborators outsideCollaborators() |
| 47 | + * @method Api\PullRequest pr() |
| 48 | + * @method Api\PullRequest pullRequest() |
| 49 | + * @method Api\PullRequest pullRequests() |
| 50 | + * @method Api\RateLimit rateLimit() |
| 51 | + * @method Api\Repo repo() |
| 52 | + * @method Api\Repo repos() |
| 53 | + * @method Api\Repo repository() |
| 54 | + * @method Api\Repo repositories() |
| 55 | + * @method Api\Search search() |
| 56 | + * @method Api\Organization\Teams team() |
| 57 | + * @method Api\Organization\Teams teams() |
| 58 | + * @method Api\User user() |
| 59 | + * @method Api\User users() |
| 60 | + * @method Api\Authorizations authorization() |
| 61 | + * @method Api\Authorizations authorizations() |
| 62 | + * @method Api\Meta meta() |
| 63 | + * @method Api\GraphQL graphql() |
63 | 64 | * |
64 | 65 | * @author Joseph Bielawski <[email protected]> |
65 | 66 | * |
@@ -287,6 +288,11 @@ public function api($name) |
287 | 288 | $api = new Api\GraphQL($this); |
288 | 289 | break; |
289 | 290 |
|
| 291 | + case 'outsideCollaborators': |
| 292 | + case 'outside_collaborators': |
| 293 | + $api = new Api\Organization\OutsideCollaborators($this); |
| 294 | + break; |
| 295 | + |
290 | 296 | default: |
291 | 297 | throw new InvalidArgumentException(sprintf('Undefined api instance called: "%s"', $name)); |
292 | 298 | } |
|
0 commit comments