<?php
declare(strict_types=1);
namespace Jobs;
use Helpers\TelegramHelper;
class TestJob extends AbstractJob
{
public function setText(string $text): self
{
$this->data['text'] = $text;
return $this;
}
public function getText(): string
{
return $this->data['text'];
}
public function execute(): bool
{
TelegramHelper::adminSend($this->getText());
return true;
}
}