Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10750800
PayloadAnalyzerConfiguration.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
PayloadAnalyzerConfiguration.php
View Options
<?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
(
$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
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jul 27, 20:36 (16 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2793170
Default Alt Text
PayloadAnalyzerConfiguration.php (1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment