PHP Class pchCommitMailReporter, php-commit-hooks

Inheritance: extends pchMailReporter
Show file Open project: kore/php-commit-hooks

Public Methods

Method Description
report ( pchRepository $repository, array $issues ) : void Report occured issues

Protected Methods

Method Description
getBasePath ( pchRepository $repository ) : void Get base path from changes
getHtmlMail ( pchRepository $repository ) : string Get HTML mail
getTextMail ( pchRepository $repository ) : string Get text mail

Method Details

getBasePath() protected method

Get base path from changes
protected getBasePath ( pchRepository $repository ) : void
$repository pchRepository
return void

getHtmlMail() protected method

Return contents of a HTML diff mail
protected getHtmlMail ( pchRepository $repository ) : string
$repository pchRepository
return string

getTextMail() protected method

Return contents of a text diff mail
protected getTextMail ( pchRepository $repository ) : string
$repository pchRepository
return string

report() public method

Report occured issues, passed as an array.
public report ( pchRepository $repository, array $issues ) : void
$repository pchRepository
$issues array
return void