<?php
namespace App\Entity;
use App\Repository\PriceroomRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PriceroomRepository::class)
*/
class Priceroom
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Hotelroom::class, inversedBy="pricerooms")
* @ORM\JoinColumn(nullable=false)
*/
private $hotelroom;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $quantite;
/**
* @ORM\ManyToOne(targetEntity=Hotelprice::class, inversedBy="pricerooms")
* @ORM\JoinColumn(nullable=false)
*/
private $hotelprice;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $price;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $marge;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $etat;
public function getId(): ?int
{
return $this->id;
}
public function getHotelroom(): ?Hotelroom
{
return $this->hotelroom;
}
public function setHotelroom(?Hotelroom $hotelroom): self
{
$this->hotelroom = $hotelroom;
return $this;
}
public function getQuantite(): ?int
{
return $this->quantite;
}
public function setQuantite(?int $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getHotelprice(): ?Hotelprice
{
return $this->hotelprice;
}
public function setHotelprice(?Hotelprice $hotelprice): self
{
$this->hotelprice = $hotelprice;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(?float $price): self
{
$this->price = $price;
return $this;
}
public function getMarge(): ?float
{
return $this->marge;
}
public function setMarge(?float $marge): self
{
$this->marge = $marge;
return $this;
}
public function isEtat(): ?bool
{
return $this->etat;
}
public function setEtat(?bool $etat): self
{
$this->etat = $etat;
return $this;
}
}