PHP Class GrumPHP\Locator\ChangedFiles

Show file Open project: phpro/grumphp Class Usage Examples

Protected Properties

Property Type Description
$repository Gitonomy\Git\Repository

Public Methods

Method Description
__construct ( Repository $repository )
locateFromGitRepository ( ) : FilesCollection
locateFromRawDiffInput ( string $rawDiff ) : FilesCollection

Private Methods

Method Description
parseFilesFromDiff ( Gitonomy\Git\Diff\Diff $diff ) : FilesCollection

Method Details

__construct() public method

public __construct ( Repository $repository )
$repository Gitonomy\Git\Repository

locateFromGitRepository() public method

public locateFromGitRepository ( ) : FilesCollection
return GrumPHP\Collection\FilesCollection

locateFromRawDiffInput() public method

public locateFromRawDiffInput ( string $rawDiff ) : FilesCollection
$rawDiff string
return GrumPHP\Collection\FilesCollection

Property Details

$repository protected property

protected Repository,Gitonomy\Git $repository
return Gitonomy\Git\Repository