Page MenuHomeDevCentral

PayloadAnalyzerConfiguration.php
No OneTemporary

PayloadAnalyzerConfiguration.php

<?php
namespace Nasqueron\Notifications\Analyzers;
class PayloadAnalyzerConfiguration {
///
/// Private members
///
/**
* The project this configuration is for
*
* @var string
*/
protected $project;
///
/// Public properties
///
/**
* The group for organization only events
*
* @var string
*/
public $administrativeGroup;
/**
* The default group to fallback for any event not mapped in another group
*
* @var string
*/
public $defaultGroup;
/**
* An array of RepositoryGroupMapping objects to match repositories & groups
*
* @var \Nasqueron\Notifications\Analyzers\ItemGroupMapping[]
*/
public $map;
///
/// Constructor
///
/**
* Initializes a new instance of the BasePayloadAnalyzerConfiguration class
*
* @param string $project The project name this configuration is related to
*/
public function __construct (string $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 () : string {
if (empty($this->defaultGroup)) {
return strtolower($this->project);
}
return $this->defaultGroup;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Jul 28, 09:33 (22 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2761132
Default Alt Text
PayloadAnalyzerConfiguration.php (1 KB)

Event Timeline