MessageTemplateParser
in package
FinalYes
Maps the association between a message template and a notification into the WhatsApp request body required to send the message to the API.
Knows the rules of the API.
Tags
Table of Contents
Methods
- parse() : array<string|int, mixed>
Methods
parse()
public
final parse(array<string|int, mixed> $components, array<string|int, mixed> $notifParams) : array<string|int, mixed>
Parameters
- $components : array<string|int, mixed>
-
the association between the notification parameters and the message template.
- $notifParams : array<string|int, mixed>
-
the notification parameters, containing a callback for fetching the parameter value.