<?php
namespace App\Entity\Support;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
class BulkQueueItem extends \App\Entity\BulkQueueItem
{
#[ORM\Column(name: 'recipient_selector', type: 'string', length: 24, nullable: true)]
private ?string $recipientSelector = null;
#[ORM\Column(name: 'broadcast_id', type: 'string', length: 32, nullable: true)]
private ?string $broadcastId = null;
#[ORM\Column(name: 'topic', type: 'string', nullable: true)]
private ?string $topic = null;
#[ORM\Column(name: 'message_text', type: 'text', nullable: true)]
private ?string $messageText = null;
#[ORM\Column(name: 'last_processed_user_id', type: 'integer', options: ['default' => 0])]
private int $lastProcessedUserId = 0;
public function __construct(
string $recipientSelector,
string $topic,
string $messageText,
string $broadcastId,
int $lastProcessedUserId = 0
) {
parent::__construct(null, 'support_message_broadcast', []);
$this->recipientSelector = $recipientSelector;
$this->topic = $topic;
$this->messageText = $messageText;
$this->broadcastId = $broadcastId;
$this->lastProcessedUserId = $lastProcessedUserId;
}
public function getRecipientSelector(): string
{
return (string)$this->recipientSelector;
}
public function getTopic(): string
{
return (string)$this->topic;
}
public function getMessageText(): string
{
return (string)$this->messageText;
}
public function getBroadcastId(): string
{
return (string)$this->broadcastId;
}
public function getLastProcessedUserId(): int
{
return $this->lastProcessedUserId;
}
}