GitInfo
extends SourceControlInfo
in package
FinalYes
Data represents "git" of Coveralls API.
"git": { "head": { "id": "b31f08d07ae564b08237e5a336e478b24ccc4a65", "author_name": "Nick Merwin", "author_email": "...", "committer_name": "Nick Merwin", "committer_email": "...", "message": "version bump" }, "branch": "master", "remotes": [ { "name": "origin", "url": "git@github.com:lemurheavy/coveralls-ruby.git" } ] }
Tags
Table of Contents
Properties
- $branch : string
- $head : CommitInfo
- $remotes : array<string|int, mixed>
- Remote.
Methods
- __construct() : mixed
- Constructor.
- getBranch() : string
- Return branch name.
- getHead() : CommitInfo
- Return HEAD commit.
- getRemotes() : array<string|int, RemoteInfo>
- Return remote repositories.
- toArray() : array<string|int, mixed>
Properties
$branch
protected
string
$branch
$head
protected
CommitInfo
$head
$remotes
Remote.
protected
array<string|int, mixed>
$remotes
Methods
__construct()
Constructor.
public
__construct(string $branch, CommitInfo $head, array<string|int, RemoteInfo> $remotes) : mixed
Parameters
- $branch : string
-
branch name
- $head : CommitInfo
-
HEAD commit
- $remotes : array<string|int, RemoteInfo>
-
remote repositories
getBranch()
Return branch name.
public
getBranch() : string
Return values
stringgetHead()
Return HEAD commit.
public
getHead() : CommitInfo
Return values
CommitInfogetRemotes()
Return remote repositories.
public
getRemotes() : array<string|int, RemoteInfo>
Return values
array<string|int, RemoteInfo>toArray()
public
toArray() : array<string|int, mixed>