src/Entity/Sejourpriceroom.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SejourpriceroomRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SejourpriceroomRepository::class)
  7.  */
  8. class Sejourpriceroom
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Sejourroom::class, inversedBy="sejourpricerooms")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $sejourroom;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Sejourprice::class, inversedBy="sejourpricerooms")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $sejourprice;
  26.     /**
  27.      * @ORM\Column(type="float", nullable=true)
  28.      */
  29.     private $price;
  30.     /**
  31.      * @ORM\Column(type="boolean", nullable=true)
  32.      */
  33.     private $etat;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getSejourroom(): ?Sejourroom
  39.     {
  40.         return $this->sejourroom;
  41.     }
  42.     public function setSejourroom(?Sejourroom $sejourroom): self
  43.     {
  44.         $this->sejourroom $sejourroom;
  45.         return $this;
  46.     }
  47.     public function getSejourprice(): ?Sejourprice
  48.     {
  49.         return $this->sejourprice;
  50.     }
  51.     public function setSejourprice(?Sejourprice $sejourprice): self
  52.     {
  53.         $this->sejourprice $sejourprice;
  54.         return $this;
  55.     }
  56.     public function getPrice(): ?float
  57.     {
  58.         return $this->price;
  59.     }
  60.     public function setPrice(?float $price): self
  61.     {
  62.         $this->price $price;
  63.         return $this;
  64.     }
  65.     public function isEtat(): ?bool
  66.     {
  67.         return $this->etat;
  68.     }
  69.     public function setEtat(?bool $etat): self
  70.     {
  71.         $this->etat $etat;
  72.         return $this;
  73.     }
  74. }