WebhookMessageFactory
A factory to create webhook messages from events.
Table of Contents
Properties
Methods
- __construct() : mixed
- createMessageFromEvent() : object|null
Properties
$typesRegistry read-only
protected
WebhookTypesRegistry
$typesRegistry
Methods
__construct()
public
__construct(WebhookTypesRegistry $typesRegistry) : mixed
Parameters
- $typesRegistry : WebhookTypesRegistry
createMessageFromEvent()
public
createMessageFromEvent(object $eventObject) : object|null
Parameters
- $eventObject : object