GitClientFactory
in package
Assemble a git client from necessary parts
Tags
Table of Contents
- $config : GitClientConfig
- $gitBinary : string
- $logger : LoggerInterface
- $repoPath : string
- __construct() : mixed
- Constructor.
- createClient() : GitClient
- createClientConfig() : GitClientConfig
Properties
$config
protected
GitClientConfig
$config
= new GitClientConfig()
$gitBinary
protected
string
$gitBinary
= ''
$logger
protected
LoggerInterface
$logger
= new NullLogger()
$repoPath
protected
string
$repoPath
= ''
Methods
__construct()
Constructor.
public
__construct([GitClientConfig $config = new GitClientConfig() ][, LoggerInterface $logger = new NullLogger() ][, string $gitBinary = '' ][, string $repoPath = '' ]) : mixed
Parameters
- $config : GitClientConfig = new GitClientConfig()
- $logger : LoggerInterface = new NullLogger()
- $gitBinary : string = ''
- $repoPath : string = ''
Return values
mixed —createClient()
public
createClient() : GitClient
Return values
GitClient —createClientConfig()
public
createClientConfig() : GitClientConfig