PHP Class pchKbotReporter, php-commit-hooks

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

Protected Properties

Property Type Description
$bot integer Number of the bot, which receives the command
$channel string IRC-Channel to report to
$name string Project name used in the report
$secret string Shared secret used to verify the senders autheticity
$url string URL the report will be passed to

Public Methods

Method Description
__construct ( $url, string $secret, string $name, string $channel, integer $bot = 1 ) : void Construct k.Bot reporter from shared secret
report ( pchRepository $repository, array $issues ) : void Report occured issues

Method Details

__construct() public method

Construct k.Bot reporter from shared secret
public __construct ( $url, string $secret, string $name, string $channel, integer $bot = 1 ) : void
$secret string
$name string
$channel string
$bot integer
return void

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

$bot protected property

Number of the bot, which receives the command
protected int $bot
return integer

$channel protected property

IRC-Channel to report to
protected string $channel
return string

$name protected property

Project name used in the report
protected string $name
return string

$secret protected property

Shared secret used to verify the senders autheticity
protected string $secret
return string

$url protected property

URL the report will be passed to
protected string $url
return string