src/Entity/SubTransactions/ArzDigital.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\SubTransactions;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Generic\User;
  5. use App\Entity\Telegram\AgentPublicBot\Bot;
  6. use App\Entity\Telegram\AgentPublicBot\BotUser;
  7. use App\Repository\SubTransactions\ArzDigitalRepository;
  8. use Doctrine\DBAL\Types\Types;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  11. #[ORM\Entity(repositoryClassArzDigitalRepository::class)]
  12. class ArzDigital extends BaseEntity
  13. {
  14.     #[ORM\Id]
  15.     #[ORM\Column(type'guid'uniquetrue)]
  16.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  17.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  18.     private ?string $id null;
  19.     #[ORM\ManyToOne(inversedBy'arzDigitals')]
  20.     private ?User $panelOwner null;
  21.     #[ORM\ManyToOne(inversedBy'arzDigitals')]
  22.     private ?BotUser $botUserOwner null;
  23.     #[ORM\ManyToOne(inversedBy'arzDigitals')]
  24.     private ?Bot $bot null;
  25.     #[ORM\Column]
  26.     private ?bool $isPaid null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $txid null;
  29.     #[ORM\Column(typeTypes::BIGINT)]
  30.     private ?string $price null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $refId null;
  33.     public function __construct()
  34.     {
  35.         parent::__construct();
  36.     }
  37.     public function getId(): ?string
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getPanelOwner(): ?User
  42.     {
  43.         return $this->panelOwner;
  44.     }
  45.     public function setPanelOwner(?User $panelOwner): static
  46.     {
  47.         $this->panelOwner $panelOwner;
  48.         return $this;
  49.     }
  50.     public function getBotUserOwner(): ?BotUser
  51.     {
  52.         return $this->botUserOwner;
  53.     }
  54.     public function setBotUserOwner(?BotUser $botUserOwner): static
  55.     {
  56.         $this->botUserOwner $botUserOwner;
  57.         return $this;
  58.     }
  59.     public function getBot(): ?Bot
  60.     {
  61.         return $this->bot;
  62.     }
  63.     public function setBot(?Bot $bot): static
  64.     {
  65.         $this->bot $bot;
  66.         return $this;
  67.     }
  68.     public function isIsPaid(): ?bool
  69.     {
  70.         return $this->isPaid;
  71.     }
  72.     public function setIsPaid(bool $isPaid): static
  73.     {
  74.         $this->isPaid $isPaid;
  75.         return $this;
  76.     }
  77.     public function getTxid(): ?string
  78.     {
  79.         return $this->txid;
  80.     }
  81.     public function setTxid(string $txid): static
  82.     {
  83.         $this->txid $txid;
  84.         return $this;
  85.     }
  86.     public function getPrice(): ?string
  87.     {
  88.         return $this->price;
  89.     }
  90.     public function setPrice(string $price): static
  91.     {
  92.         $this->price $price;
  93.         return $this;
  94.     }
  95.     public function getRefId(): ?string
  96.     {
  97.         return $this->refId;
  98.     }
  99.     public function setRefId(?string $refId): static
  100.     {
  101.         $this->refId $refId;
  102.         return $this;
  103.     }
  104. }