GitInfoCollector
in package
Git repository info collector.
Tags
Table of Contents
Properties
- $command : GitCommand
- Git command.
Methods
- __construct() : mixed
- Constructor.
- collect() : Git
- Collect git repository info.
- getCommand() : GitCommand
- Return git command.
- collectBranch() : string
- Collect branch name.
- collectCommit() : Commit
- Collect commit info.
- collectRemotes() : array<string|int, Remote>
- Collect remotes info.
Properties
$command
Git command.
protected
GitCommand
$command
Methods
__construct()
Constructor.
public
__construct(GitCommand $command) : mixed
Parameters
- $command : GitCommand
-
Git command
collect()
Collect git repository info.
public
collect() : Git
Return values
GitgetCommand()
Return git command.
public
getCommand() : GitCommand
Return values
GitCommandcollectBranch()
Collect branch name.
protected
collectBranch() : string
Tags
Return values
stringcollectCommit()
Collect commit info.
protected
collectCommit() : Commit
Tags
Return values
CommitcollectRemotes()
Collect remotes info.
protected
collectRemotes() : array<string|int, Remote>