Class Github\Api\Issue\Milestones

InheritanceGithub\Api\Issue\Milestones » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Github\Api\AbstractApi
all() Get all milestones for a repository. Github\Api\Issue\Milestones
configure() Github\Api\AbstractApi
create() Create a milestone for a repository. Github\Api\Issue\Milestones
getPerPage() Github\Api\AbstractApi
labels() Get the labels of a milestone Github\Api\Issue\Milestones
remove() Delete a milestone for a repository. Github\Api\Issue\Milestones
setPerPage() Github\Api\AbstractApi
show() Get a milestone for a repository. Github\Api\Issue\Milestones
update() Update a milestone for a repository. Github\Api\Issue\Milestones

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

Get all milestones for a repository.

public array all ( $username, $repository, array $params = [] )
$username string
$repository string
$params array
create() public method

Create a milestone for a repository.

public array create ( $username, $repository, array $params )
$username string
$repository string
$params array
throws Github\Exception\MissingArgumentException
labels() public method

Get the labels of a milestone

public array labels ( $username, $repository, $id )
$username string
$repository string
$id int
remove() public method

Delete a milestone for a repository.

public null remove ( $username, $repository, $id )
$username string
$repository string
$id int
show() public method

Get a milestone for a repository.

public array show ( $username, $repository, $id )
$username string
$repository string
$id int
update() public method

Update a milestone for a repository.

public array update ( $username, $repository, $id, array $params )
$username string
$repository string
$id int
$params array