Documentation

EventMap
in package

FinalYes

The events constant must have the following structure:

Tags
example

public const EVENTS = [ [ 'name' => 'customer.merge', 'type' => 'MergeCustomerPayload', ], [ 'name' => 'customer.delete', 'type' => 'CustomerDeletePayload', ], [ 'name' => 'customer.created', 'type' => 'CustomerCreatedPayload', ] ];

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
string

getTypeName()

public static getTypeName(string $eventName[, bool $fqdn = true ]) : string
Parameters
$eventName : string
$fqdn : bool = true
Return values
string

        
On this page

Search results