src/Entity/Transactions.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TransactionsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassTransactionsRepository::class)]
  7. class Transactions
  8. {
  9.     CONST IS_PAID "is_paid";
  10.     CONST IS_NOT_PAID "is_not_paid";
  11.     CONST PARTIAL_PAID "partial_paid";
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     #[Groups(["show_transaction"])]
  18.     private ?string $amount null;
  19.     #[ORM\Column(length255)]
  20.     #[Groups(["show_transaction"])]
  21.     private ?string $currencyCode null;
  22.     #[ORM\Column(length255)]
  23.     #[Groups(["show_transaction"])]
  24.     private ?string $currencyName null;
  25.     #[ORM\Column(length255)]
  26.     #[Groups(["show_transaction"])]
  27.     private ?string $fees null;
  28.     #[ORM\Column(length255)]
  29.     #[Groups(["show_transaction"])]
  30.     private ?string $reference null;
  31.     #[ORM\Column(length255)]
  32.     #[Groups(["show_transaction"])]
  33.     private ?string $externalReference null;
  34.     #[ORM\Column(length255)]
  35.     #[Groups(["show_transaction"])]
  36.     private ?string $totalAmount null;
  37.     #[ORM\Column]
  38.     #[Groups(["show_transaction"])]
  39.     private ?bool $isPaid null;
  40.     #[ORM\ManyToOne(inversedBy'transactions')]
  41.     private ?User $user null;
  42.     #[ORM\Column(length255)]
  43.     #[Groups(["show_transaction"])]
  44.     private ?string $customerName null;
  45.     #[ORM\Column(length255)]
  46.     #[Groups(["show_transaction"])]
  47.     private ?string $customerEmail null;
  48.     #[ORM\Column(length255)]
  49.     #[Groups(["show_transaction"])]
  50.     private ?string $customerPhoneNumber null;
  51.     #[ORM\ManyToOne(inversedBy'transactions')]
  52.     private ?TransactionType $transactionType null;
  53.     #[ORM\Column(length255)]
  54.     #[Groups(["show_transaction"])]
  55.     private ?string $raison null;
  56.     #[ORM\Column(length255)]
  57.     #[Groups(["show_transaction"])]
  58.     private ?string $paymentMethod null;
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getAmount(): ?string
  64.     {
  65.         return $this->amount;
  66.     }
  67.     public function setAmount(string $amount): self
  68.     {
  69.         $this->amount $amount;
  70.         return $this;
  71.     }
  72.     public function getCurrencyCode(): ?string
  73.     {
  74.         return $this->currencyCode;
  75.     }
  76.     public function setCurrencyCode(string $currencyCode): self
  77.     {
  78.         $this->currencyCode $currencyCode;
  79.         return $this;
  80.     }
  81.     public function getCurrencyName(): ?string
  82.     {
  83.         return $this->currencyName;
  84.     }
  85.     public function setCurrencyName(string $currencyName): self
  86.     {
  87.         $this->currencyName $currencyName;
  88.         return $this;
  89.     }
  90.     public function getFees(): ?string
  91.     {
  92.         return $this->fees;
  93.     }
  94.     public function setFees(string $fees): self
  95.     {
  96.         $this->fees $fees;
  97.         return $this;
  98.     }
  99.     public function getReference(): ?string
  100.     {
  101.         return $this->reference;
  102.     }
  103.     public function setReference(string $reference): self
  104.     {
  105.         $this->reference $reference;
  106.         return $this;
  107.     }
  108.     public function getExternalReference(): ?string
  109.     {
  110.         return $this->externalReference;
  111.     }
  112.     public function setExternalReference(string $externalReference): self
  113.     {
  114.         $this->externalReference $externalReference;
  115.         return $this;
  116.     }
  117.     public function getTotalAmount(): ?string
  118.     {
  119.         return $this->totalAmount;
  120.     }
  121.     public function setTotalAmount(string $totalAmount): self
  122.     {
  123.         $this->totalAmount $totalAmount;
  124.         return $this;
  125.     }
  126.     public function isIsPaid(): ?bool
  127.     {
  128.         return $this->isPaid;
  129.     }
  130.     public function setIsPaid(bool $isPaid): self
  131.     {
  132.         $this->isPaid $isPaid;
  133.         return $this;
  134.     }
  135.     public function getUser(): ?User
  136.     {
  137.         return $this->user;
  138.     }
  139.     public function setUser(?User $user): self
  140.     {
  141.         $this->user $user;
  142.         return $this;
  143.     }
  144.     public function getCustomerName(): ?string
  145.     {
  146.         return $this->customerName;
  147.     }
  148.     public function setCustomerName(string $customerName): self
  149.     {
  150.         $this->customerName $customerName;
  151.         return $this;
  152.     }
  153.     public function getCustomerEmail(): ?string
  154.     {
  155.         return $this->customerEmail;
  156.     }
  157.     public function setCustomerEmail(string $customerEmail): self
  158.     {
  159.         $this->customerEmail $customerEmail;
  160.         return $this;
  161.     }
  162.     public function getCustomerPhoneNumber(): ?string
  163.     {
  164.         return $this->customerPhoneNumber;
  165.     }
  166.     public function setCustomerPhoneNumber(string $customerPhoneNumber): self
  167.     {
  168.         $this->customerPhoneNumber $customerPhoneNumber;
  169.         return $this;
  170.     }
  171.     public function getTransactionType(): ?TransactionType
  172.     {
  173.         return $this->transactionType;
  174.     }
  175.     public function setTransactionType(?TransactionType $transactionType): self
  176.     {
  177.         $this->transactionType $transactionType;
  178.         return $this;
  179.     }
  180.     public function getRaison(): ?string
  181.     {
  182.         return $this->raison;
  183.     }
  184.     public function setRaison(string $raison): self
  185.     {
  186.         $this->raison $raison;
  187.         return $this;
  188.     }
  189.     public function getPaymentMethod(): ?string
  190.     {
  191.         return $this->paymentMethod;
  192.     }
  193.     public function setPaymentMethod(string $paymentMethod): self
  194.     {
  195.         $this->paymentMethod $paymentMethod;
  196.         return $this;
  197.     }
  198. }