PHP Class pchMailReporter, php-commit-hooks

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

Protected Properties

Property Type Description
$receiver mixed Receiver of the mail
$sender string Sender of the mail
$subject string Subject of the mail

Public Methods

Method Description
__construct ( string $sender, string $receiver, string $subject ) : void Construct mail reporter
report ( pchRepository $repository, array $issues ) : void Report occured issues

Protected Methods

Method Description
replacePlaceholders ( string $string, pchRepository $repository ) : string Replace placeholders in user provided strings

Method Details

__construct() public method

Construct the mail reporter from the sender of the mail, the receiver and subject. In all values simple values are replaced, like {user} is replaced by the SVN user name.
public __construct ( string $sender, string $receiver, string $subject ) : void
$sender string
$receiver string
$subject string
return void

replacePlaceholders() protected method

Replace placeholders in user provided strings
protected replacePlaceholders ( string $string, pchRepository $repository ) : string
$string 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

Property Details

$receiver protected property

Receiver of the mail
protected mixed $receiver
return mixed

$sender protected property

Sender of the mail
protected string $sender
return string

$subject protected property

Subject of the mail
protected string $subject
return string