mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-05 06:43:12 +08:00
42 lines
909 B
PHP
42 lines
909 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Options;
|
|
|
|
use Laminas\Stdlib\AbstractOptions;
|
|
|
|
/** @deprecated */
|
|
class WebhookOptions extends AbstractOptions
|
|
{
|
|
protected $__strictMode__ = false; // phpcs:ignore
|
|
|
|
private array $webhooks = [];
|
|
private bool $notifyOrphanVisitsToWebhooks = false;
|
|
|
|
public function webhooks(): array
|
|
{
|
|
return $this->webhooks;
|
|
}
|
|
|
|
public function hasWebhooks(): bool
|
|
{
|
|
return ! empty($this->webhooks);
|
|
}
|
|
|
|
protected function setWebhooks(array $webhooks): void
|
|
{
|
|
$this->webhooks = $webhooks;
|
|
}
|
|
|
|
public function notifyOrphanVisits(): bool
|
|
{
|
|
return $this->notifyOrphanVisitsToWebhooks;
|
|
}
|
|
|
|
protected function setNotifyOrphanVisitsToWebhooks(bool $notifyOrphanVisitsToWebhooks): void
|
|
{
|
|
$this->notifyOrphanVisitsToWebhooks = $notifyOrphanVisitsToWebhooks;
|
|
}
|
|
}
|