Loading api-platform/src/Entity/Currency.php 0 → 100644 +37 −0 Original line number Diff line number Diff line <?php namespace App\Entity; use ApiPlatform\Metadata\ApiResource; use App\Repository\TestRepository; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity] #[ApiResource] class Currency { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 20)] private ?string $label = null; public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): static { $this->label = $label; return $this; } } Loading
api-platform/src/Entity/Currency.php 0 → 100644 +37 −0 Original line number Diff line number Diff line <?php namespace App\Entity; use ApiPlatform\Metadata\ApiResource; use App\Repository\TestRepository; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity] #[ApiResource] class Currency { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 20)] private ?string $label = null; public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): static { $this->label = $label; return $this; } }