PHP Class Webcreate\Vcs\Git\Parser\CliParser

Author: Jeroen Fiege ([email protected])
Inheritance: implements Webcreate\Vcs\Common\Parser\ParserInterface
Mostrar archivo Open project: webcreate/vcs Class Usage Examples

Protected Properties

Property Type Description
$client Webcreate\Vcs\Common\AbstractClient

Public Methods

Method Description
getClient ( ) : Webcreate\Vcs\Common\AbstractClient Returns client
parse ( $command, array $arguments = [], $output ) (non-PHPdoc)
parseDiffOutput ( string $output, array $arguments = [] ) : string | Webcreate\Vcs\Common\VcsFileInfo[] Parse the diff command output to FileInfo objects
parseLogOutput ( string $output, array $arguments = [] ) : string | Webcreate\Vcs\Common\Commit[] Parses the log command output to Commit objects
parseStatusOutput ( string $output, array $arguments = [] ) : string | Webcreate\Vcs\Common\FileInfo[] Parse the status command output to FileInfo objects
setClient ( Webcreate\Vcs\Common\AbstractClient $client ) (non-PHPdoc)

Method Details

getClient() public method

Returns client
public getClient ( ) : Webcreate\Vcs\Common\AbstractClient
return Webcreate\Vcs\Common\AbstractClient

parse() public method

(non-PHPdoc)
public parse ( $command, array $arguments = [], $output )
$arguments array

parseDiffOutput() public method

Parse the diff command output to FileInfo objects
public parseDiffOutput ( string $output, array $arguments = [] ) : string | Webcreate\Vcs\Common\VcsFileInfo[]
$output string
$arguments array
return string | Webcreate\Vcs\Common\VcsFileInfo[]

parseLogOutput() public method

Parses the log command output to Commit objects
public parseLogOutput ( string $output, array $arguments = [] ) : string | Webcreate\Vcs\Common\Commit[]
$output string
$arguments array
return string | Webcreate\Vcs\Common\Commit[]

parseStatusOutput() public method

Parse the status command output to FileInfo objects
public parseStatusOutput ( string $output, array $arguments = [] ) : string | Webcreate\Vcs\Common\FileInfo[]
$output string
$arguments array
return string | Webcreate\Vcs\Common\FileInfo[]

setClient() public method

(non-PHPdoc)
public setClient ( Webcreate\Vcs\Common\AbstractClient $client )
$client Webcreate\Vcs\Common\AbstractClient

Property Details

$client protected_oe property

protected AbstractClient,Webcreate\Vcs\Common $client
return Webcreate\Vcs\Common\AbstractClient