<?phpnamespace App\Entity;use App\Repository\ExchangeRateRepository;use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ExchangeRateRepository::class) * @Auditable() */class ExchangeRate{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime") */ private $startValidityDate; /** * @ORM\Column(type="datetime", nullable=true) */ private $endValidityDate; /** * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="exchangeRates") */ private $userModify; /** * @ORM\Column(type="boolean") */ private $isActive; /** * @ORM\Column(type="float") */ private $rate; /** * @ORM\ManyToOne(targetEntity=Users::class) */ private $userCreate; public function getId(): ?int { return $this->id; } public function getStartValidityDate(): ?\DateTimeInterface { return $this->startValidityDate; } public function setStartValidityDate(\DateTimeInterface $startValidityDate): self { $this->startValidityDate = $startValidityDate; return $this; } public function getEndValidityDate(): ?\DateTimeInterface { return $this->endValidityDate; } public function setEndValidityDate(?\DateTimeInterface $endValidityDate): self { $this->endValidityDate = $endValidityDate; return $this; } public function getUserModify(): ?Users { return $this->userModify; } public function setUserModify(?Users $userModify): self { $this->userModify = $userModify; return $this; } public function getIsActive(): ?bool { return $this->isActive; } public function setIsActive(bool $isActive): self { $this->isActive = $isActive; return $this; } public function getRate(): ?float { return $this->rate; } public function setRate(float $rate): self { $this->rate = $rate; return $this; } public function getUserCreate(): ?Users { return $this->userCreate; } public function setUserCreate(?Users $userCreate): self { $this->userCreate = $userCreate; return $this; }}