Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793666
BaseEvent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
879 B
Referenced Files
None
Subscribers
None
BaseEvent.php
View Options
<?php
namespace
Nasqueron\Notifications\Analyzers\DockerHub
;
abstract
class
BaseEvent
{
/**
* @var \stdClass
*/
protected
$payload
;
/**
* Initializes a new instance of the BaseEvent object.
*
* @param \stdClass $payload The payload to analyze
*/
public
function
__construct
(
$payload
)
{
$this
->
payload
=
$payload
;
}
///
/// Public methods
///
/**
* Gets notification payload.
*
* This method allows analyzer to edit the payload.
*/
public
function
getPayload
()
{
return
$this
->
payload
;
}
/**
* Gets notification text for this event.
*
* @return string
*/
abstract
public
function
getText
();
/**
* Gets notification link related to this event.
*
* @return string
*/
abstract
public
function
getLink
();
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 22:47 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2438299
Default Alt Text
BaseEvent.php (879 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment