src/Entity/ExchangeRate.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ExchangeRateRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ExchangeRateRepository::class)
  8.  * @Auditable()
  9.  */
  10. class ExchangeRate
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="datetime")
  20.      */
  21.     private $startValidityDate;
  22.     /**
  23.      * @ORM\Column(type="datetime", nullable=true)
  24.      */
  25.     private $endValidityDate;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="exchangeRates")
  28.      */
  29.     private $userModify;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $isActive;
  34.     /**
  35.      * @ORM\Column(type="float")
  36.      */
  37.     private $rate;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Users::class)
  40.      */
  41.     private $userCreate;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getStartValidityDate(): ?\DateTimeInterface
  47.     {
  48.         return $this->startValidityDate;
  49.     }
  50.     public function setStartValidityDate(\DateTimeInterface $startValidityDate): self
  51.     {
  52.         $this->startValidityDate $startValidityDate;
  53.         return $this;
  54.     }
  55.     public function getEndValidityDate(): ?\DateTimeInterface
  56.     {
  57.         return $this->endValidityDate;
  58.     }
  59.     public function setEndValidityDate(?\DateTimeInterface $endValidityDate): self
  60.     {
  61.         $this->endValidityDate $endValidityDate;
  62.         return $this;
  63.     }
  64.     public function getUserModify(): ?Users
  65.     {
  66.         return $this->userModify;
  67.     }
  68.     public function setUserModify(?Users $userModify): self
  69.     {
  70.         $this->userModify $userModify;
  71.         return $this;
  72.     }
  73.     public function getIsActive(): ?bool
  74.     {
  75.         return $this->isActive;
  76.     }
  77.     public function setIsActive(bool $isActive): self
  78.     {
  79.         $this->isActive $isActive;
  80.         return $this;
  81.     }
  82.     public function getRate(): ?float
  83.     {
  84.         return $this->rate;
  85.     }
  86.     public function setRate(float $rate): self
  87.     {
  88.         $this->rate $rate;
  89.         return $this;
  90.     }
  91.     public function getUserCreate(): ?Users
  92.     {
  93.         return $this->userCreate;
  94.     }
  95.     public function setUserCreate(?Users $userCreate): self
  96.     {
  97.         $this->userCreate $userCreate;
  98.         return $this;
  99.     }
  100. }