Page MenuHomeDevCentral

UnknownEvent.php
No OneTemporary

UnknownEvent.php

<?php
namespace Nasqueron\Notifications\Analyzers\GitHub\Events;
/**
* Unknown event payload analyzer
*
* This is a fallack when no specific class exists for this event type.
*/
class UnknownEvent extends Event {
/**
* @var string
*/
private $eventType;
/**
* Initializes a new instance of the UnknownEvent class, an Event analyzer
* class to handle unknown events type.
*
* @param string $eventType The event type (e.g. push)
*/
public function __construct ($eventType, $payload = null) {
$this->eventType = $eventType;
parent::__construct($payload);
}
/**
* Gets description for the payload
*
* @return string
*/
public function getDescription () {
return "Some $this->eventType happened";
}
/**
* Gets link for the payload
*
* @return string
*/
public function getLink () {
return "";
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 16, 13:44 (16 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3138265
Default Alt Text
UnknownEvent.php (953 B)

Event Timeline