src/Entity/HotelXmlPrice.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HotelXmlPriceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassHotelXmlPriceRepository::class)]
  6. class HotelXmlPrice
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $room null;
  14.     #[ORM\Column(length128)]
  15.     private ?string $board null;
  16.     #[ORM\Column(length32)]
  17.     private ?string $currency null;
  18.     #[ORM\ManyToOne(targetEntityHotelXml::class, cascade: ["persist" ], inversedBy'prices')]
  19.     #[ORM\JoinColumn(nullablefalse )]
  20.     private ?HotelXml $hotelXml null;
  21.     #[ORM\Column]
  22.     private ?float $price null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getRoom(): ?string
  28.     {
  29.         return $this->room;
  30.     }
  31.     public function setRoom(string $room): self
  32.     {
  33.         $this->room $room;
  34.         return $this;
  35.     }
  36.     public function getBoard(): ?string
  37.     {
  38.         return $this->board;
  39.     }
  40.     public function setBoard(string $board): self
  41.     {
  42.         $this->board $board;
  43.         return $this;
  44.     }
  45.     public function getCurrency(): ?string
  46.     {
  47.         return $this->currency;
  48.     }
  49.     public function setCurrency(string $currency): self
  50.     {
  51.         $this->currency $currency;
  52.         return $this;
  53.     }
  54.     public function getHotelXml(): ?HotelXml
  55.     {
  56.         return $this->hotelXml;
  57.     }
  58.     public function setHotelXml(?HotelXml $hotelXml): self
  59.     {
  60.         $this->hotelXml $hotelXml;
  61.         return $this;
  62.     }
  63.     public function getPrice(): ?float
  64.     {
  65.         return $this->price;
  66.     }
  67.     public function setPrice(float $price): self
  68.     {
  69.         $this->price $price;
  70.         return $this;
  71.     }
  72.     public function __toString(): string
  73.     {
  74.         return $this->hotelXml" ".$this->room." x ".$this->board;
  75.     }
  76. }