src/Entity/Telegram/AgentPublicBot/BotTransaction.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Telegram\AgentPublicBot;
  3. use App\Entity\BaseEntity;
  4. use App\Repository\Telegram\AgentPublicBot\BotTransactionRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  8. #[ORM\Entity(repositoryClassBotTransactionRepository::class)]
  9. class BotTransaction extends BaseEntity
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\Column(type'guid'uniquetrue)]
  13.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  14.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  15.     private ?string $id null;
  16.     #[ORM\ManyToOne(inversedBy'botTransactions')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?BotUser $botUser null;
  19.     #[ORM\Column]
  20.     private ?int $type null;
  21.     #[ORM\Column(typeTypes::BIGINT)]
  22.     private ?string $price null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $description null;
  25.     #[ORM\Column(typeTypes::BIGINT)]
  26.     private ?string $beforeWallet null;
  27.     #[ORM\Column(typeTypes::BIGINT)]
  28.     private ?string $afterWallet null;
  29.     #[ORM\ManyToOne(inversedBy'botTransactions')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private ?Bot $bot null;
  32.     public function getId(): ?string
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getBotUser(): ?BotUser
  37.     {
  38.         return $this->botUser;
  39.     }
  40.     public function setBotUser(?BotUser $botUser): static
  41.     {
  42.         $this->botUser $botUser;
  43.         return $this;
  44.     }
  45.     public function getType(): ?int
  46.     {
  47.         return $this->type;
  48.     }
  49.     public function setType(int $type): static
  50.     {
  51.         $this->type $type;
  52.         return $this;
  53.     }
  54.     public function getPrice(): ?string
  55.     {
  56.         return $this->price;
  57.     }
  58.     public function setPrice(string $price): static
  59.     {
  60.         $this->price $price;
  61.         return $this;
  62.     }
  63.     public function getDescription(): ?string
  64.     {
  65.         return $this->description;
  66.     }
  67.     public function setDescription(string $description): static
  68.     {
  69.         $this->description $description;
  70.         return $this;
  71.     }
  72.     public function getBeforeWallet(): ?string
  73.     {
  74.         return $this->beforeWallet;
  75.     }
  76.     public function setBeforeWallet(string $beforeWallet): static
  77.     {
  78.         $this->beforeWallet $beforeWallet;
  79.         return $this;
  80.     }
  81.     public function getAfterWallet(): ?string
  82.     {
  83.         return $this->afterWallet;
  84.     }
  85.     public function setAfterWallet(string $afterWallet): static
  86.     {
  87.         $this->afterWallet $afterWallet;
  88.         return $this;
  89.     }
  90.     public function getBot(): ?Bot
  91.     {
  92.         return $this->bot;
  93.     }
  94.     public function setBot(?Bot $bot): static
  95.     {
  96.         $this->bot $bot;
  97.         return $this;
  98.     }
  99. }