<?php
namespace App\Entity\SubTransactions;
use App\Entity\BaseEntity;
use App\Entity\Generic\User;
use App\Entity\Telegram\AgentPublicBot\Bot;
use App\Entity\Telegram\AgentPublicBot\BotUser;
use App\Repository\SubTransactions\ArzDigitalRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
#[ORM\Entity(repositoryClass: ArzDigitalRepository::class)]
class ArzDigital extends BaseEntity
{
#[ORM\Id]
#[ORM\Column(type: 'guid', unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
private ?string $id = null;
#[ORM\ManyToOne(inversedBy: 'arzDigitals')]
private ?User $panelOwner = null;
#[ORM\ManyToOne(inversedBy: 'arzDigitals')]
private ?BotUser $botUserOwner = null;
#[ORM\ManyToOne(inversedBy: 'arzDigitals')]
private ?Bot $bot = null;
#[ORM\Column]
private ?bool $isPaid = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $txid = null;
#[ORM\Column(type: Types::BIGINT)]
private ?string $price = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $refId = null;
public function __construct()
{
parent::__construct();
}
public function getId(): ?string
{
return $this->id;
}
public function getPanelOwner(): ?User
{
return $this->panelOwner;
}
public function setPanelOwner(?User $panelOwner): static
{
$this->panelOwner = $panelOwner;
return $this;
}
public function getBotUserOwner(): ?BotUser
{
return $this->botUserOwner;
}
public function setBotUserOwner(?BotUser $botUserOwner): static
{
$this->botUserOwner = $botUserOwner;
return $this;
}
public function getBot(): ?Bot
{
return $this->bot;
}
public function setBot(?Bot $bot): static
{
$this->bot = $bot;
return $this;
}
public function isIsPaid(): ?bool
{
return $this->isPaid;
}
public function setIsPaid(bool $isPaid): static
{
$this->isPaid = $isPaid;
return $this;
}
public function getTxid(): ?string
{
return $this->txid;
}
public function setTxid(string $txid): static
{
$this->txid = $txid;
return $this;
}
public function getPrice(): ?string
{
return $this->price;
}
public function setPrice(string $price): static
{
$this->price = $price;
return $this;
}
public function getRefId(): ?string
{
return $this->refId;
}
public function setRefId(?string $refId): static
{
$this->refId = $refId;
return $this;
}
}