Class Github\Api\Enterprise\Stats

InheritanceGithub\Api\Enterprise\Stats » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
all() Returns all of the statistics. Github\Api\Enterprise\Stats
comments() Returns the number of comments on issues, pull requests, commits, and gists. Github\Api\Enterprise\Stats
configure() Github\Api\AbstractApi
getPerPage() Github\Api\AbstractApi
gists() Returns the number of private and public gists. Github\Api\Enterprise\Stats
hooks() Returns the number of active and inactive hooks. Github\Api\Enterprise\Stats
issues() Returns the number of open and closed issues. Github\Api\Enterprise\Stats
milestones() Returns the number of open and closed milestones. Github\Api\Enterprise\Stats
orgs() Returns the number of organizations, teams, team members, and disabled organizations. Github\Api\Enterprise\Stats
pages() Returns the number of GitHub Pages sites. Github\Api\Enterprise\Stats
pulls() Returns the number of merged, mergeable, and unmergeable pull requests. Github\Api\Enterprise\Stats
repos() Returns the number of organization-owned repositories, root repositories, forks, pushed commits, and wikis. Github\Api\Enterprise\Stats
setPerPage() Github\Api\AbstractApi
show() Github\Api\Enterprise\Stats
users() Returns the number of suspended and admin users. Github\Api\Enterprise\Stats

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
createJsonBody() Create a JSON encoded version of an array of parameters. Github\Api\AbstractApi
delete() Send a DELETE request with JSON-encoded parameters. Github\Api\AbstractApi
get() Send a GET request with query parameters. Github\Api\AbstractApi
head() Send a HEAD request with query parameters. Github\Api\AbstractApi
patch() Send a PATCH request with JSON-encoded parameters. Github\Api\AbstractApi
post() Send a POST request with JSON-encoded parameters. Github\Api\AbstractApi
postRaw() Send a POST request with raw data. Github\Api\AbstractApi
put() Send a PUT request with JSON-encoded parameters. Github\Api\AbstractApi

Method Details

all() public method

Returns all of the statistics.

public array all ( )
return array

Array with all of the statistics

comments() public method

Returns the number of comments on issues, pull requests, commits, and gists.

public array comments ( )
return array

Array with totals of comments on issues, pull requests, commits, and gists

gists() public method

Returns the number of private and public gists.

public array gists ( )
return array

Array with totals of private and public gists

hooks() public method

Returns the number of active and inactive hooks.

public array hooks ( )
return array

Array with totals of active and inactive hooks

issues() public method

Returns the number of open and closed issues.

public array issues ( )
return array

Array with totals of open and closed issues

milestones() public method

Returns the number of open and closed milestones.

public array milestones ( )
return array

Array with totals of open and closed milestones

orgs() public method

Returns the number of organizations, teams, team members, and disabled organizations.

public array orgs ( )
return array

Array with totals of organizations, teams, team members, and disabled organizations

pages() public method

Returns the number of GitHub Pages sites.

public array pages ( )
return array

Array with totals of GitHub Pages sites

pulls() public method

Returns the number of merged, mergeable, and unmergeable pull requests.

public array pulls ( )
return array

Array with totals of merged, mergeable, and unmergeable pull requests

repos() public method

Returns the number of organization-owned repositories, root repositories, forks, pushed commits, and wikis.

public array repos ( )
return array

Array with totals of organization-owned repositories, root repositories, forks, pushed commits, and wikis

show() public method

public array show ( $type )
$type string

The type of statistics to show

users() public method

Returns the number of suspended and admin users.

public array users ( )
return array

Array with totals of suspended and admin users