Page MenuHomeDevCentral

BaseEvent.php
No OneTemporary

BaseEvent.php

<?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

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)

Event Timeline