src/Entity/Shop/Accounting/Transaction.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Shop\Accounting;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Generic\Customer\Customer;
  5. use App\Entity\Shop\Order\Order;
  6. use App\Entity\Shop\Shop\Shop;
  7. use App\Repository\Shop\Accounting\TransactionRepository;
  8. use Doctrine\DBAL\Types\Types;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  11. #[ORM\Entity(repositoryClassTransactionRepository::class)]
  12. #[ORM\Table(name'`shop_transaction`' )]
  13. class Transaction extends BaseEntity
  14. {
  15.     #[ORM\Id]
  16.     #[ORM\Column(type'guid'uniquetrue)]
  17.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  18.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  19.     private $id;
  20.     #[ORM\ManyToOne(inversedBy'transactions')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?Customer $owner null;
  23.     #[ORM\Column]
  24.     private ?bool $type null;
  25.     #[ORM\Column(typeTypes::BIGINT)]
  26.     private ?string $price null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $description null;
  29.     #[ORM\Column(typeTypes::BIGINT)]
  30.     private ?string $beforeWallet null;
  31.     #[ORM\Column(typeTypes::BIGINT)]
  32.     private ?string $afterWallet null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $followCode null;
  35.     #[ORM\ManyToOne(inversedBy'transactions')]
  36.     #[ORM\JoinColumn(nullablefalse)]
  37.     private ?Shop $shop null;
  38.     #[ORM\ManyToOne(inversedBy'transactions')]
  39.     private ?Order $paidOrder null;
  40.     public function getId(): ?string
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getOwner(): ?Customer
  45.     {
  46.         return $this->owner;
  47.     }
  48.     public function setOwner(?Customer $owner): static
  49.     {
  50.         $this->owner $owner;
  51.         return $this;
  52.     }
  53.     public function isType(): ?bool
  54.     {
  55.         return $this->type;
  56.     }
  57.     public function setType(bool $type): static
  58.     {
  59.         $this->type $type;
  60.         return $this;
  61.     }
  62.     public function getPrice(): ?string
  63.     {
  64.         return $this->price;
  65.     }
  66.     public function setPrice(string $price): static
  67.     {
  68.         $this->price $price;
  69.         return $this;
  70.     }
  71.     public function getDescription(): ?string
  72.     {
  73.         return $this->description;
  74.     }
  75.     public function setDescription(?string $description): static
  76.     {
  77.         $this->description $description;
  78.         return $this;
  79.     }
  80.     public function getBeforeWallet(): ?string
  81.     {
  82.         return $this->beforeWallet;
  83.     }
  84.     public function setBeforeWallet(string $beforeWallet): static
  85.     {
  86.         $this->beforeWallet $beforeWallet;
  87.         return $this;
  88.     }
  89.     public function getAfterWallet(): ?string
  90.     {
  91.         return $this->afterWallet;
  92.     }
  93.     public function setAfterWallet(string $afterWallet): static
  94.     {
  95.         $this->afterWallet $afterWallet;
  96.         return $this;
  97.     }
  98.     public function getFollowCode(): ?string
  99.     {
  100.         return $this->followCode;
  101.     }
  102.     public function setFollowCode(?string $followCode): static
  103.     {
  104.         $this->followCode $followCode;
  105.         return $this;
  106.     }
  107.     public function getShop(): ?Shop
  108.     {
  109.         return $this->shop;
  110.     }
  111.     public function setShop(?Shop $shop): static
  112.     {
  113.         $this->shop $shop;
  114.         return $this;
  115.     }
  116.     public function getPaidOrder(): ?Order
  117.     {
  118.         return $this->paidOrder;
  119.     }
  120.     public function setPaidOrder(?Order $paidOrder): static
  121.     {
  122.         $this->paidOrder $paidOrder;
  123.         return $this;
  124.     }
  125. }