\duncan3dc\GitHubTag

Summary

Methods
Properties
Constants
fromListResponse()
getName()
getCommit()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$data
N/A

Properties

$data

$data : \stdClass

Type

\stdClass — The tag's data.

Methods

fromListResponse()

fromListResponse(\stdClass  $data) : \duncan3dc\GitHub\TagInterface

Create a new instance from an API request for a list of tags.

Parameters

\stdClass $data

The tag's basic data from the GitHub Api

Returns

\duncan3dc\GitHub\TagInterface

getName()

getName() : string

Get the name of this tag.

Returns

string

getCommit()

getCommit() : string

Get the hash of the commit this tag references.

Returns

string

__construct()

__construct(\stdClass  $data) 

Create a new instance.

Parameters

\stdClass $data

The tag's data from the GitHub Api