PDFGate's PHP SDK

WebhookResponse
in package

Webhook metadata DTO returned by PDFGate webhook endpoints.

Table of Contents

Properties

$createdAt  : string|null
$description  : string|null
$eventTypes  : array<int, string>
$id  : string
$secret  : string|null
$status  : string
$updatedAt  : string|null
$url  : string

Methods

__construct()  : mixed
fromArray()  : self
getCreatedAt()  : string|null
getDescription()  : string|null
getEventTypes()  : array<int, string>
getId()  : string
getSecret()  : string|null
Signing secret. Only returned once, when the webhook is created.
getStatus()  : string
Returns one of the WebhookStatus constants.
getUpdatedAt()  : string|null
getUrl()  : string
optionalString()  : string|null

Properties

$eventTypes

private array<int, string> $eventTypes

One of the WebhookEventType constants each.

Methods

__construct()

public __construct(string $id, string $url, array<int, string> $eventTypes, string $status[, string|null $description = null ][, string|null $secret = null ][, string|null $createdAt = null ][, string|null $updatedAt = null ]) : mixed
Parameters
$id : string
$url : string
$eventTypes : array<int, string>

One of the WebhookEventType constants each.

$status : string

One of the WebhookStatus constants.

$description : string|null = null
$secret : string|null = null
$createdAt : string|null = null
$updatedAt : string|null = null

fromArray()

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

getCreatedAt()

public getCreatedAt() : string|null
Return values
string|null

getDescription()

public getDescription() : string|null
Return values
string|null

getEventTypes()

public getEventTypes() : array<int, string>
Return values
array<int, string> —

One of the WebhookEventType constants each.

getSecret()

Signing secret. Only returned once, when the webhook is created.

public getSecret() : string|null
Return values
string|null

getStatus()

Returns one of the WebhookStatus constants.

public getStatus() : string
Return values
string

getUpdatedAt()

public getUpdatedAt() : string|null
Return values
string|null

optionalString()

private static optionalString(array<string, mixed> $payload, string $key) : string|null
Parameters
$payload : array<string, mixed>
$key : string
Return values
string|null
On this page

Search results