2023-08-30 10:37:08 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Service\Forms\Webhooks;
|
|
|
|
|
|
|
|
class SimpleWebhookHandler extends AbstractWebhookHandler
|
|
|
|
{
|
|
|
|
protected function getProviderName(): string
|
|
|
|
{
|
|
|
|
return 'webhook';
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function getWebhookUrl(): ?string
|
|
|
|
{
|
|
|
|
return $this->form->webhook_url;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function shouldRun(): bool
|
|
|
|
{
|
2024-02-23 10:54:12 +00:00
|
|
|
return ! is_null($this->getWebhookUrl()) && $this->form->is_pro;
|
2023-08-30 10:37:08 +00:00
|
|
|
}
|
|
|
|
}
|