<?php
namespace App\Entity;
use App\Repository\ReservationhotelRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ReservationhotelRepository::class)
*/
class Reservationhotel
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Hotel::class, inversedBy="reservationhotels")
* @ORM\JoinColumn(nullable=false)
*/
private $hotel;
/**
* @ORM\ManyToOne(targetEntity=Client::class, inversedBy="reservationhotels")
* @ORM\JoinColumn(nullable=false)
*/
private $client;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $total;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $typepayment;
public function getId(): ?int
{
return $this->id;
}
public function getHotel(): ?Hotel
{
return $this->hotel;
}
public function setHotel(?Hotel $hotel): self
{
$this->hotel = $hotel;
return $this;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setClient(?Client $client): self
{
$this->client = $client;
return $this;
}
public function getTotal(): ?float
{
return $this->total;
}
public function setTotal(?float $total): self
{
$this->total = $total;
return $this;
}
public function getTypepayment(): ?string
{
return $this->typepayment;
}
public function setTypepayment(?string $typepayment): self
{
$this->typepayment = $typepayment;
return $this;
}
}