WebhookInstruction
DTO for an instruction - that is a representation of a configured webhook to a specific remote - contains all configuration information.
What type of message should be sent (WebhookType), where should it be sent to and what additional headers etc. should be sent.
Table of Contents
Methods
- __construct() : mixed
- getAdditionalHeaders() : array<string|int, mixed>|null
- getDescription() : string
- getHttpMethod() : string
- getIdentifier() : string|null
- getName() : string
- getRow() : array<string|int, mixed>
- getSecret() : string
- getTargetUrl() : string
- getUid() : int
- getWebhookType() : WebhookType|null
- verifySSL() : bool
Methods
__construct()
public
__construct(string $url, string $secret[, string $method = 'POST' ][, bool $verifySSL = true ][, array<string|int, mixed> $additionalHeaders = [] ][, string|null $name = null ][, string|null $description = null ][, WebhookType|null $webhookType = null ][, string|null $identifier = null ][, int|null $uid = null ][, array<string|int, mixed> $row = [] ]) : mixed
Parameters
- $url : string
- $secret : string
- $method : string = 'POST'
- $verifySSL : bool = true
- $additionalHeaders : array<string|int, mixed> = []
- $name : string|null = null
- $description : string|null = null
- $webhookType : WebhookType|null = null
- $identifier : string|null = null
- $uid : int|null = null
- $row : array<string|int, mixed> = []
getAdditionalHeaders()
public
getAdditionalHeaders() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetDescription()
public
getDescription() : string
Return values
stringgetHttpMethod()
public
getHttpMethod() : string
Return values
stringgetIdentifier()
public
getIdentifier() : string|null
Return values
string|nullgetName()
public
getName() : string
Return values
stringgetRow()
public
getRow() : array<string|int, mixed>
Return values
array<string|int, mixed>getSecret()
public
getSecret() : string
Return values
stringgetTargetUrl()
public
getTargetUrl() : string
Return values
stringgetUid()
public
getUid() : int
Return values
intgetWebhookType()
public
getWebhookType() : WebhookType|null
Return values
WebhookType|nullverifySSL()
public
verifySSL() : bool