src/Entity/BaseSite/Transaction.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\BaseSite;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Generic\User;
  5. use App\Entity\Telegram\Ad;
  6. use App\Repository\BaseSite\TransactionRepository;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  10. #[ORM\Entity(repositoryClassTransactionRepository::class)]
  11. #[ORM\Table(name'`base_site_transaction`' )]
  12. class Transaction 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 $id;
  19.     #[ORM\ManyToOne(inversedBy'transactions')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?User $owner null;
  22.     #[ORM\Column]
  23.     private ?bool $type null;
  24.     #[ORM\Column(typeTypes::BIGINT)]
  25.     private ?string $price null;
  26.     #[ORM\Column(typeTypes::TEXT)]
  27.     private ?string $description null;
  28.     #[ORM\Column(typeTypes::BIGINT)]
  29.     private ?string $beforeWallet null;
  30.     #[ORM\Column(typeTypes::BIGINT)]
  31.     private ?string $afterWallet null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $followCode null;
  34.     public function __construct()
  35.     {
  36.         parent::__construct();
  37.     }
  38.     public function getId(): ?string
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getOwner(): ?User
  43.     {
  44.         return $this->owner;
  45.     }
  46.     public function setOwner(?User $owner): static
  47.     {
  48.         $this->owner $owner;
  49.         return $this;
  50.     }
  51.     public function isType(): ?bool
  52.     {
  53.         return $this->type;
  54.     }
  55.     public function setType(bool $type): static
  56.     {
  57.         $this->type $type;
  58.         return $this;
  59.     }
  60.     public function getPrice(): ?string
  61.     {
  62.         return $this->price;
  63.     }
  64.     public function setPrice(string $price): static
  65.     {
  66.         $this->price $price;
  67.         return $this;
  68.     }
  69.     public function getDescription(): ?string
  70.     {
  71.         return $this->description;
  72.     }
  73.     public function setDescription(string $description): static
  74.     {
  75.         $this->description $description;
  76.         return $this;
  77.     }
  78.     public function getBeforeWallet(): ?string
  79.     {
  80.         return $this->beforeWallet;
  81.     }
  82.     public function setBeforeWallet(string $beforeWallet): static
  83.     {
  84.         $this->beforeWallet $beforeWallet;
  85.         return $this;
  86.     }
  87.     public function getAfterWallet(): ?string
  88.     {
  89.         return $this->afterWallet;
  90.     }
  91.     public function setAfterWallet(string $afterWallet): static
  92.     {
  93.         $this->afterWallet $afterWallet;
  94.         return $this;
  95.     }
  96.     public function getFollowCode(): ?string
  97.     {
  98.         return $this->followCode;
  99.     }
  100.     public function setFollowCode(?string $followCode): static
  101.     {
  102.         $this->followCode $followCode;
  103.         return $this;
  104.     }
  105. }