forked from KnpLabs/php-github-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnterprise.php
60 lines (53 loc) · 1.18 KB
/
Enterprise.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
namespace Github\Api;
use Github\Api\Enterprise\License;
use Github\Api\Enterprise\ManagementConsole;
use Github\Api\Enterprise\SecretScanning;
use Github\Api\Enterprise\Stats;
use Github\Api\Enterprise\UserAdmin;
/**
* Getting information about a GitHub Enterprise instance.
*
* @link https://developer.github.com/v3/enterprise/
*
* @author Joseph Bielawski <[email protected]>
* @author Guillermo A. Fisher <[email protected]>
*/
class Enterprise extends AbstractApi
{
/**
* @return Stats
*/
public function stats()
{
return new Stats($this->getClient());
}
/**
* @return License
*/
public function license()
{
return new License($this->getClient());
}
/**
* @return ManagementConsole
*/
public function console()
{
return new ManagementConsole($this->getClient());
}
/**
* @return UserAdmin
*/
public function userAdmin()
{
return new UserAdmin($this->getClient());
}
/**
* @return SecretScanning
*/
public function secretScanning(): SecretScanning
{
return new SecretScanning($this->getClient());
}
}