<?php
namespace App\Entity;
use App\Repository\SejourpriceroomRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SejourpriceroomRepository::class)
*/
class Sejourpriceroom
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Sejourroom::class, inversedBy="sejourpricerooms")
* @ORM\JoinColumn(nullable=false)
*/
private $sejourroom;
/**
* @ORM\ManyToOne(targetEntity=Sejourprice::class, inversedBy="sejourpricerooms")
* @ORM\JoinColumn(nullable=false)
*/
private $sejourprice;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $price;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $etat;
public function getId(): ?int
{
return $this->id;
}
public function getSejourroom(): ?Sejourroom
{
return $this->sejourroom;
}
public function setSejourroom(?Sejourroom $sejourroom): self
{
$this->sejourroom = $sejourroom;
return $this;
}
public function getSejourprice(): ?Sejourprice
{
return $this->sejourprice;
}
public function setSejourprice(?Sejourprice $sejourprice): self
{
$this->sejourprice = $sejourprice;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(?float $price): self
{
$this->price = $price;
return $this;
}
public function isEtat(): ?bool
{
return $this->etat;
}
public function setEtat(?bool $etat): self
{
$this->etat = $etat;
return $this;
}
}