final class WebhookPayload

Methods

__construct(string $webhookId, int $timeMs, array $events)

Create a new webhook payload instance.

string
toJson()

Convert the payload to a Pusher-spec JSON string.

Details

at line 14
__construct(string $webhookId, int $timeMs, array $events)

Create a new webhook payload instance.

Parameters

string $webhookId
int $timeMs
array $events

at line 24
string toJson()

Convert the payload to a Pusher-spec JSON string.

Return Value

string