WorkOS PHP SDK

WebhookEndpointJson
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$endpointUrl  : string
The URL to which webhooks are sent.
$events  : array<string|int, string>
The events that the Webhook Endpoint is subscribed to.
$id  : string
Unique identifier of the Webhook Endpoint.
$object  : string
Distinguishes the Webhook Endpoint object.
$secret  : string
The secret used to sign webhook payloads.
$status  : WebhookEndpointJsonStatus
Whether the Webhook Endpoint is enabled or disabled.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$events

The events that the Webhook Endpoint is subscribed to.

public array<string|int, string> $events

Methods

__construct()

public __construct(string $object, string $id, string $endpointUrl, string $secret, WebhookEndpointJsonStatus $status, array<string|int, mixed> $events, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$object : string
$id : string
$endpointUrl : string
$secret : string
$status : WebhookEndpointJsonStatus
$events : array<string|int, mixed>
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results