Files
taxes/project/src/Entity/ExchangeRates.php
T
2026-04-13 13:19:18 +02:00

69 lines
1.3 KiB
PHP

<?php
namespace App\Entity;
use App\Repository\ExchangeRatesRepository;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Index;
#[ORM\Table]
#[Index(columns: ['date_date', 'str_currency'], name: 'currency')]
#[ORM\Entity(repositoryClass: ExchangeRatesRepository::class)]
class ExchangeRates
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 3)]
private $strCurrency;
#[ORM\Column(type: 'float')]
private $intRate;
#[ORM\Column(type: 'date')]
private $dateDate;
public function getId(): ?int
{
return $this->id;
}
public function getStrCurrency(): ?string
{
return $this->strCurrency;
}
public function setStrCurrency(string $strCurrency): self
{
$this->strCurrency = $strCurrency;
return $this;
}
public function getIntRate(): ?float
{
return $this->intRate;
}
public function setIntRate(float $intRate): self
{
$this->intRate = $intRate;
return $this;
}
public function getDateDate(): ?\DateTimeInterface
{
return $this->dateDate;
}
public function setDateDate(\DateTimeInterface $dateDate): self
{
$this->dateDate = $dateDate;
return $this;
}
}