src/Entity/Telegram/AgentPublicBot/BotAnalytics.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\BotAnalyticsRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  8. #[ORM\Entity(repositoryClassBotAnalyticsRepository::class)]
  9. class BotAnalytics 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\Column(typeTypes::DATE_MUTABLE)]
  17.     private ?\DateTimeInterface $date null;
  18.     #[ORM\Column(typeTypes::BIGINT)]
  19.     private ?string $walletIncrease null;
  20.     #[ORM\Column]
  21.     private ?int $boughtService null;
  22.     #[ORM\Column]
  23.     private ?int $v2ray null;
  24.     #[ORM\Column]
  25.     private ?int $open null;
  26.     #[ORM\Column]
  27.     private ?int $ocServ null;
  28.     #[ORM\Column]
  29.     private ?int $vip null;
  30.     #[ORM\Column(typeTypes::BIGINT)]
  31.     private ?string $boughtVolume null;
  32.     #[ORM\Column]
  33.     private ?int $v2rayUnlimited null;
  34.     #[ORM\Column]
  35.     private ?int $openUnlimited null;
  36.     #[ORM\Column]
  37.     private ?int $ocServUnlimited null;
  38.     #[ORM\ManyToOne(inversedBy'botAnalytics')]
  39.     #[ORM\JoinColumn(nullablefalse)]
  40.     private ?Bot $bot null;
  41.     #[ORM\Column]
  42.     private ?int $testService null;
  43.     public function __construct()
  44.     {
  45.         parent::__construct();
  46.         $this->walletIncrease 0;
  47.         $this->boughtService 0;
  48.         $this->v2ray 0;
  49.         $this->open 0;
  50.         $this->ocServ 0;
  51.         $this->vip 0;
  52.         $this->boughtVolume 0;
  53.         $this->v2rayUnlimited 0;
  54.         $this->openUnlimited 0;
  55.         $this->ocServUnlimited 0;
  56.         $this->testService 0;
  57.     }
  58.     public function getId(): ?string
  59.     {
  60.         return $this->id;
  61.     }
  62.     public function getDate(): ?\DateTimeInterface
  63.     {
  64.         return $this->date;
  65.     }
  66.     public function setDate(\DateTimeInterface $date): static
  67.     {
  68.         $this->date $date;
  69.         return $this;
  70.     }
  71.     public function getWalletIncrease(): ?string
  72.     {
  73.         return $this->walletIncrease;
  74.     }
  75.     public function setWalletIncrease(string $walletIncrease): static
  76.     {
  77.         $this->walletIncrease $walletIncrease;
  78.         return $this;
  79.     }
  80.     public function getBoughtService(): ?int
  81.     {
  82.         return $this->boughtService;
  83.     }
  84.     public function setBoughtService(int $boughtService): static
  85.     {
  86.         $this->boughtService $boughtService;
  87.         return $this;
  88.     }
  89.     public function getV2ray(): ?int
  90.     {
  91.         return $this->v2ray;
  92.     }
  93.     public function setV2ray(int $v2ray): static
  94.     {
  95.         $this->v2ray $v2ray;
  96.         return $this;
  97.     }
  98.     public function getOpen(): ?int
  99.     {
  100.         return $this->open;
  101.     }
  102.     public function setOpen(int $open): static
  103.     {
  104.         $this->open $open;
  105.         return $this;
  106.     }
  107.     public function getOcServ(): ?int
  108.     {
  109.         return $this->ocServ;
  110.     }
  111.     public function setOcServ(int $ocServ): static
  112.     {
  113.         $this->ocServ $ocServ;
  114.         return $this;
  115.     }
  116.     public function getVip(): ?int
  117.     {
  118.         return $this->vip;
  119.     }
  120.     public function setVip(int $vip): static
  121.     {
  122.         $this->vip $vip;
  123.         return $this;
  124.     }
  125.     public function getBoughtVolume(): ?string
  126.     {
  127.         return $this->boughtVolume;
  128.     }
  129.     public function setBoughtVolume(string $boughtVolume): static
  130.     {
  131.         $this->boughtVolume $boughtVolume;
  132.         return $this;
  133.     }
  134.     public function getV2rayUnlimited(): ?int
  135.     {
  136.         return $this->v2rayUnlimited;
  137.     }
  138.     public function setV2rayUnlimited(int $v2rayUnlimited): static
  139.     {
  140.         $this->v2rayUnlimited $v2rayUnlimited;
  141.         return $this;
  142.     }
  143.     public function getOpenUnlimited(): ?int
  144.     {
  145.         return $this->openUnlimited;
  146.     }
  147.     public function setOpenUnlimited(int $openUnlimited): static
  148.     {
  149.         $this->openUnlimited $openUnlimited;
  150.         return $this;
  151.     }
  152.     public function getOcServUnlimited(): ?int
  153.     {
  154.         return $this->ocServUnlimited;
  155.     }
  156.     public function setOcServUnlimited(int $ocServUnlimited): static
  157.     {
  158.         $this->ocServUnlimited $ocServUnlimited;
  159.         return $this;
  160.     }
  161.     public function getBot(): ?Bot
  162.     {
  163.         return $this->bot;
  164.     }
  165.     public function setBot(?Bot $bot): static
  166.     {
  167.         $this->bot $bot;
  168.         return $this;
  169.     }
  170.     public function getTestService(): ?int
  171.     {
  172.         return $this->testService;
  173.     }
  174.     public function setTestService(int $testService): static
  175.     {
  176.         $this->testService $testService;
  177.         return $this;
  178.     }
  179. }