Page MenuHomeDevCentral

JenkinsPayloadAnalyzerConfiguration.php
No OneTemporary

JenkinsPayloadAnalyzerConfiguration.php

<?php
namespace Nasqueron\Notifications\Analyzers\Jenkins;
class JenkinsPayloadAnalyzerConfiguration {
///
/// Private members
///
/**
* The project this configuration is for
*
* @var string
*/
private $project;
///
/// Public properties
///
/**
* The default group to fallback for any event not mapped in another group
*
* @var string
*/
public $defaultGroup;
/**
* An array of RepositoryGroupMapping objects to match jobs & groups
*
* @var \Nasqueron\Notifications\Analyzers\ItemGroupMapping[]
*/
public $groupsMapping;
/**
* @var string[]
*/
public $notifyOnlyOnFailureJobs;
///
/// Constructor
///
/**
* Initializes a new instance of the GitHubPayloadAnalyzerConfiguration class
*
* @param string $project The project name this configuration is related to
*/
public function __construct ($project) {
$this->project = $project;
}
///
/// Helper methods
///
/**
* Gets the default group
*
* @return string the default group, as set in the configuration,
* or if omitted, the project name as fallback.
*/
public function getDefaultGroup () {
if (empty($this->defaultGroup)) {
return strtolower($this->project);
}
return $this->defaultGroup;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 17, 19:07 (22 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3685059
Default Alt Text
JenkinsPayloadAnalyzerConfiguration.php (1 KB)

Event Timeline