interface EventReceiverInterface

Methods

boolean|string
getEventType()

Get event type for which this receiver listens

mixed
receive($event, $eventType = null)

Receive an event from a WebhookHandler

Details

at line line 13
boolean|string getEventType()

Get event type for which this receiver listens

A boolean false will listen for all events.

Return Value

boolean|string

at line line 27
mixed receive($event, $eventType = null)

Receive an event from a WebhookHandler

The $eventType will only be populated if this receiver listens to all events. This is done by implementing the interface method getEventType() with a function that returns false.

Parameters

$event
$eventType

Return Value

mixed