EventMap
in package
FinalYes
The events constant must have the following structure:
Tags
Table of Contents
Constants
- COCKPIT_ADDREGISTRATION = ['name' => 'cockpit.addRegistration', 'type' => 'CockpitAddRegistrationPayload']
- CUSTOMER_CREATED = ['name' => 'customer.created', 'type' => 'CustomerCreatedEventPayload']
- CUSTOMER_DELETE = ['name' => 'customer.delete', 'type' => 'CustomerDeleteEventPayload']
- CUSTOMER_MERGE = ['name' => 'customer.merge', 'type' => 'MergeCustomerPayload']
- EMAIL_BUTTON = ['name' => 'email.button', 'type' => 'ButtonEmailEventPayload']
- EMAIL_GENERIC = ['name' => 'email.generic', 'type' => 'GenericEmailEventPayload']
- EVENTS = [self::CUSTOMER_MERGE, self::CUSTOMER_DELETE, self::CUSTOMER_CREATED, self::EMAIL_GENERIC, self::EMAIL_BUTTON, self::COCKPIT_ADDREGISTRATION]
Methods
- getEventName() : string
- getTypeName() : string
Constants
COCKPIT_ADDREGISTRATION
public
mixed
COCKPIT_ADDREGISTRATION
= ['name' => 'cockpit.addRegistration', 'type' => 'CockpitAddRegistrationPayload']
CUSTOMER_CREATED
public
mixed
CUSTOMER_CREATED
= ['name' => 'customer.created', 'type' => 'CustomerCreatedEventPayload']
CUSTOMER_DELETE
public
mixed
CUSTOMER_DELETE
= ['name' => 'customer.delete', 'type' => 'CustomerDeleteEventPayload']
CUSTOMER_MERGE
public
mixed
CUSTOMER_MERGE
= ['name' => 'customer.merge', 'type' => 'MergeCustomerPayload']
EMAIL_BUTTON
public
mixed
EMAIL_BUTTON
= ['name' => 'email.button', 'type' => 'ButtonEmailEventPayload']
EMAIL_GENERIC
public
mixed
EMAIL_GENERIC
= ['name' => 'email.generic', 'type' => 'GenericEmailEventPayload']
EVENTS
public
mixed
EVENTS
= [self::CUSTOMER_MERGE, self::CUSTOMER_DELETE, self::CUSTOMER_CREATED, self::EMAIL_GENERIC, self::EMAIL_BUTTON, self::COCKPIT_ADDREGISTRATION]
Methods
getEventName()
public
static getEventName(string $typeName) : string
Parameters
- $typeName : string
Return values
stringgetTypeName()
public
static getTypeName(string $eventName[, bool $fqdn = true ]) : string
Parameters
- $eventName : string
- $fqdn : bool = true