Git
extends Coveralls
in package
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
Methods
- __construct() : mixed
- Constructor.
- __toString() : string
- String expression (convert to json).
- getBranch() : string
- Return branch name.
- getHead() : Commit
- Return HEAD commit.
- getRemotes() : array<string|int, Remote>
- Return remote repositories.
- toArray() : array<string|int, mixed>
- Convert to an array.
- onJsonError() : mixed
Properties
$branch
Branch name.
protected
string
$branch
$head
Head.
protected
Commit
$head
$remotes
Remote.
protected
array<string|int, Remote>
$remotes
Methods
__construct()
Constructor.
public
__construct(string $branch, Commit $head, array<string|int, mixed> $remotes) : mixed
Parameters
- $branch : string
-
branch name
- $head : Commit
-
hEAD commit
- $remotes : array<string|int, mixed>
-
remote repositories
__toString()
String expression (convert to json).
public
__toString() : string
Return values
stringgetBranch()
Return branch name.
public
getBranch() : string
Return values
stringgetHead()
Return HEAD commit.
public
getHead() : Commit
Return values
CommitgetRemotes()
Return remote repositories.
public
getRemotes() : array<string|int, Remote>
Return values
array<string|int, Remote>toArray()
Convert to an array.
public
toArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>onJsonError()
protected
onJsonError() : mixed