src/Entity/Priceroom.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PriceroomRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PriceroomRepository::class)
  7.  */
  8. class Priceroom
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Hotelroom::class, inversedBy="pricerooms")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $hotelroom;
  21.     /**
  22.      * @ORM\Column(type="integer", nullable=true)
  23.      */
  24.     private $quantite;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Hotelprice::class, inversedBy="pricerooms")
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $hotelprice;
  30.     /**
  31.      * @ORM\Column(type="float", nullable=true)
  32.      */
  33.     private $price;
  34.     /**
  35.      * @ORM\Column(type="float", nullable=true)
  36.      */
  37.     private $marge;
  38.     /**
  39.      * @ORM\Column(type="boolean", nullable=true)
  40.      */
  41.     private $etat;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getHotelroom(): ?Hotelroom
  47.     {
  48.         return $this->hotelroom;
  49.     }
  50.     public function setHotelroom(?Hotelroom $hotelroom): self
  51.     {
  52.         $this->hotelroom $hotelroom;
  53.         return $this;
  54.     }
  55.     public function getQuantite(): ?int
  56.     {
  57.         return $this->quantite;
  58.     }
  59.     public function setQuantite(?int $quantite): self
  60.     {
  61.         $this->quantite $quantite;
  62.         return $this;
  63.     }
  64.     public function getHotelprice(): ?Hotelprice
  65.     {
  66.         return $this->hotelprice;
  67.     }
  68.     public function setHotelprice(?Hotelprice $hotelprice): self
  69.     {
  70.         $this->hotelprice $hotelprice;
  71.         return $this;
  72.     }
  73.     public function getPrice(): ?float
  74.     {
  75.         return $this->price;
  76.     }
  77.     public function setPrice(?float $price): self
  78.     {
  79.         $this->price $price;
  80.         return $this;
  81.     }
  82.     public function getMarge(): ?float
  83.     {
  84.         return $this->marge;
  85.     }
  86.     public function setMarge(?float $marge): self
  87.     {
  88.         $this->marge $marge;
  89.         return $this;
  90.     }
  91.     public function isEtat(): ?bool
  92.     {
  93.         return $this->etat;
  94.     }
  95.     public function setEtat(?bool $etat): self
  96.     {
  97.         $this->etat $etat;
  98.         return $this;
  99.     }
  100. }