PHP Class pchMailReporter, php-commit-hooks

Inheritance: extends pchTextReporter
Afficher le fichier Open project: kore/php-commit-hooks

Protected Properties

Свойство Type Description
$receiver mixed Receiver of the mail
$sender string Sender of the mail
$subject string Subject of the mail

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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
Résultat void

replacePlaceholders() protected méthode

Replace placeholders in user provided strings
protected replacePlaceholders ( string $string, pchRepository $repository ) : string
$string string
$repository pchRepository
Résultat string

report() public méthode

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

Property Details

$receiver protected_oe property

Receiver of the mail
protected mixed $receiver
Résultat mixed

$sender protected_oe property

Sender of the mail
protected string $sender
Résultat string

$subject protected_oe property

Subject of the mail
protected string $subject
Résultat string