src/Entity/Transaction.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TransactionRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TransactionRepository::class)
  8.  * @Auditable()
  9.  */
  10. class Transaction
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $transactionNumber;
  22.     /**
  23.      * @ORM\Column(type="datetime")
  24.      */
  25.     private $creationDate;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $status;
  30.     /**
  31.      * @ORM\Column(type="float")
  32.      */
  33.     private $amount;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $providerStatus;
  38.     /**
  39.      * @ORM\Column(type="string", length=255)
  40.      */
  41.     private $currency;
  42.     /**
  43.      * @ORM\Column(type="datetime", nullable=true)
  44.      */
  45.     private $updateDate;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $description;
  50.     /**
  51.      * @ORM\Column(type="string", length=255, nullable=true)
  52.      */
  53.     private $clientOperator;
  54.     /**
  55.      * @ORM\Column(type="integer")
  56.      */
  57.     private $wallet;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $financialTransaction;
  62.     /**
  63.      * @ORM\Column(type="float", nullable=true)
  64.      */
  65.     private $amountUsd;
  66.     /**
  67.      * @ORM\Column(type="float", nullable=true)
  68.      */
  69.     private $exchangeRate;
  70.     /**
  71.      * @ORM\Column(type="string", length=500, nullable=true)
  72.      */
  73.     private $financialTransactionUrl;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=Folder::class)
  76.      * @ORM\JoinColumn(nullable=false)
  77.      */
  78.     private $folder;
  79.     /**
  80.      * @ORM\ManyToOne(targetEntity=Users::class)
  81.      * @ORM\JoinColumn(nullable=false)
  82.      */
  83.     private $user;
  84.     public function getId(): ?int
  85.     {
  86.         return $this->id;
  87.     }
  88.     public function getTransactionNumber(): ?string
  89.     {
  90.         return $this->transactionNumber;
  91.     }
  92.     public function setTransactionNumber(string $transactionNumber): self
  93.     {
  94.         $this->transactionNumber $transactionNumber;
  95.         return $this;
  96.     }
  97.     public function getCreationDate(): ?\DateTimeInterface
  98.     {
  99.         return $this->creationDate;
  100.     }
  101.     public function setCreationDate(\DateTimeInterface $creationDate): self
  102.     {
  103.         $this->creationDate $creationDate;
  104.         return $this;
  105.     }
  106.     public function getStatus(): ?string
  107.     {
  108.         return $this->status;
  109.     }
  110.     public function setStatus(string $status): self
  111.     {
  112.         $this->status $status;
  113.         return $this;
  114.     }
  115.     public function getAmount(): ?float
  116.     {
  117.         return $this->amount;
  118.     }
  119.     public function setAmount(float $amount): self
  120.     {
  121.         $this->amount $amount;
  122.         return $this;
  123.     }
  124.     public function getProviderStatus(): ?string
  125.     {
  126.         return $this->providerStatus;
  127.     }
  128.     public function setProviderStatus(?string $providerStatus): self
  129.     {
  130.         $this->providerStatus $providerStatus;
  131.         return $this;
  132.     }
  133.     public function getCurrency(): ?string
  134.     {
  135.         return $this->currency;
  136.     }
  137.     public function setCurrency(string $currency): self
  138.     {
  139.         $this->currency $currency;
  140.         return $this;
  141.     }
  142.     public function getUpdateDate(): ?\DateTimeInterface
  143.     {
  144.         return $this->updateDate;
  145.     }
  146.     public function setUpdateDate(?\DateTimeInterface $updateDate): self
  147.     {
  148.         $this->updateDate $updateDate;
  149.         return $this;
  150.     }
  151.     public function getDescription(): ?string
  152.     {
  153.         return $this->description;
  154.     }
  155.     public function setDescription(?string $description): self
  156.     {
  157.         $this->description $description;
  158.         return $this;
  159.     }
  160.     public function getClientOperator(): ?string
  161.     {
  162.         return $this->clientOperator;
  163.     }
  164.     public function setClientOperator(?string $clientOperator): self
  165.     {
  166.         $this->clientOperator $clientOperator;
  167.         return $this;
  168.     }
  169.     public function getWallet(): ?int
  170.     {
  171.         return $this->wallet;
  172.     }
  173.     public function setWallet(int $wallet): self
  174.     {
  175.         $this->wallet $wallet;
  176.         return $this;
  177.     }
  178.     public function getFinancialTransaction(): ?string
  179.     {
  180.         return $this->financialTransaction;
  181.     }
  182.     public function setFinancialTransaction(?string $financialTransaction): self
  183.     {
  184.         $this->financialTransaction $financialTransaction;
  185.         return $this;
  186.     }
  187.     public function getAmountUsd(): ?float
  188.     {
  189.         return $this->amountUsd;
  190.     }
  191.     public function setAmountUsd(?float $amountUsd): self
  192.     {
  193.         $this->amountUsd $amountUsd;
  194.         return $this;
  195.     }
  196.     public function getExchangeRate(): ?float
  197.     {
  198.         return $this->exchangeRate;
  199.     }
  200.     public function setExchangeRate(?float $exchangeRate): self
  201.     {
  202.         $this->exchangeRate $exchangeRate;
  203.         return $this;
  204.     }
  205.     public function getFinancialTransactionUrl(): ?string
  206.     {
  207.         return $this->financialTransactionUrl;
  208.     }
  209.     public function setFinancialTransactionUrl(?string $financialTransactionUrl): self
  210.     {
  211.         $this->financialTransactionUrl $financialTransactionUrl;
  212.         return $this;
  213.     }
  214.     public function getFolder(): ?Folder
  215.     {
  216.         return $this->folder;
  217.     }
  218.     public function setFolder(?Folder $folder): self
  219.     {
  220.         $this->folder $folder;
  221.         return $this;
  222.     }
  223.     public function getUser(): ?Users
  224.     {
  225.         return $this->user;
  226.     }
  227.     public function setUser(?Users $user): self
  228.     {
  229.         $this->user $user;
  230.         return $this;
  231.     }
  232. }