Copied!

Webhook

Webhook.php : 14
Read-only
Final

Immutable value object representing a configured webhook.

Constants

publicNAME_MAX_LENGTH

Webhook.php : 19

Maximum length of a webhook name, in characters (bounded by the storage column length).

public int NAME_MAX_LENGTH = 190

Properties

public $consecutiveFailures

Webhook.php : 33
public int $consecutiveFailures

public $createdAt

Webhook.php : 36
public DateTimeImmutable|null $createdAt = null

public $disabledAt

Webhook.php : 35
public DateTimeImmutable|null $disabledAt = null

public $disabledReason

Webhook.php : 34
public string|null $disabledReason

public $enabled

Webhook.php : 29
public bool $enabled

public $eventTypes

Webhook.php : 30
public array<string|int, mixed> $eventTypes

public $filters

Webhook.php : 31
public WebhookFilters $filters

public $id

Webhook.php : 25
public int $id

public $modifiedAt

Webhook.php : 37
public DateTimeImmutable|null $modifiedAt = null

public $name

Webhook.php : 26
public string $name

public $ownerId

Webhook.php : 32
public int $ownerId

public $secret

Webhook.php : 28
public string $secret

public $url

Webhook.php : 27
public string $url

Methods

public__construct()

Webhook.php : 24
public __construct(int $id, string $name, string $url, string $secret, bool $enabled, array<int, string> $eventTypes, WebhookFilters $filters, int $ownerId, int $consecutiveFailures, string|null $disabledReason[, DateTimeImmutable|null $disabledAt = null ][, DateTimeImmutable|null $createdAt = null ][, DateTimeImmutable|null $modifiedAt = null ])

Parameters

Name Type Default value Description
$id int - -
$name string - -
$url string - -
$secret string - -
$enabled bool - -
$eventTypes array<int, string> - -
$filters WebhookFilters - -
$ownerId int - -
$consecutiveFailures int - -
$disabledReason string|null - -
$disabledAt DateTimeImmutable|null null -
$createdAt DateTimeImmutable|null null -
$modifiedAt DateTimeImmutable|null null -