26 lines
510 B
PHP
26 lines
510 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace App\Message;
|
||
|
|
||
|
use App\Environment;
|
||
|
|
||
|
class TestWebhookMessage extends AbstractUniqueMessage
|
||
|
{
|
||
|
public int $webhookId;
|
||
|
|
||
|
/** @var string|null The path to log output of the Backup command to. */
|
||
|
public ?string $outputPath = null;
|
||
|
|
||
|
public function getIdentifier(): string
|
||
|
{
|
||
|
return 'TestWebHook_' . $this->webhookId;
|
||
|
}
|
||
|
|
||
|
public function getTtl(): ?float
|
||
|
{
|
||
|
return Environment::getInstance()->getSyncLongExecutionTime();
|
||
|
}
|
||
|
}
|