src/Entity/CurrencyExchangeRate.php line 14
<?phpnamespace App\Entity;use ApiPlatform\Core\Annotation\ApiResource;use App\Repository\CurrencyExchangeRateRepository;use Doctrine\ORM\Mapping as ORM;use ApiPlatform\Core\Annotation\ApiFilter;use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;#[ORM\Entity(repositoryClass: CurrencyExchangeRateRepository::class)]#[ApiResource]#[ApiFilter(SearchFilter::class, properties: ['source' => 'exact','target' => 'exact'])]class CurrencyExchangeRate{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255, nullable: true)]private ?string $source = null;#[ORM\Column(length: 255, nullable: true)]private ?string $target = null;#[ORM\Column(nullable: true)]private ?float $rate = null;public function getId(): ?int{return $this->id;}public function getSource(): ?string{return $this->source;}public function setSource(?string $source): static{$this->source = $source;return $this;}public function getTarget(): ?string{return $this->target;}public function setTarget(?string $target): static{$this->target = $target;return $this;}public function getRate(): ?float{return $this->rate;}public function setRate(?float $rate): static{$this->rate = $rate;return $this;}}