<?phpnamespace App\Entity;use App\Repository\HotelXmlPriceRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: HotelXmlPriceRepository::class)]class HotelXmlPrice{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $room = null; #[ORM\Column(length: 128)] private ?string $board = null; #[ORM\Column(length: 32)] private ?string $currency = null; #[ORM\ManyToOne(targetEntity: HotelXml::class, cascade: ["persist" ], inversedBy: 'prices')] #[ORM\JoinColumn(nullable: false )] private ?HotelXml $hotelXml = null; #[ORM\Column] private ?float $price = null; public function getId(): ?int { return $this->id; } public function getRoom(): ?string { return $this->room; } public function setRoom(string $room): self { $this->room = $room; return $this; } public function getBoard(): ?string { return $this->board; } public function setBoard(string $board): self { $this->board = $board; return $this; } public function getCurrency(): ?string { return $this->currency; } public function setCurrency(string $currency): self { $this->currency = $currency; return $this; } public function getHotelXml(): ?HotelXml { return $this->hotelXml; } public function setHotelXml(?HotelXml $hotelXml): self { $this->hotelXml = $hotelXml; return $this; } public function getPrice(): ?float { return $this->price; } public function setPrice(float $price): self { $this->price = $price; return $this; } public function __toString(): string { return $this->hotelXml. " ".$this->room." x ".$this->board; }}