for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Smalot\Github\Webhook\Event;
/**
* Class EventBase
* @package Smalot\Github\Webhook\Event
*/
abstract class EventBase
{
* @var string
protected $eventName;
protected $payload;
protected $delivery;
* EventBase constructor.
* @param string $eventName
* @param string $payload
* @param string $delivery
public function __construct($eventName, $payload, $delivery = null)
$this->eventName = $eventName;
$this->payload = json_decode($payload, true);
$this->delivery = $delivery;
}
* @return string
abstract public function getEventName();
public function getPayload()
return $this->payload;
public function getDelivery()
return $this->delivery;