src/Entity/Reservationhotel.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReservationhotelRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ReservationhotelRepository::class)
  7.  */
  8. class Reservationhotel
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Hotel::class, inversedBy="reservationhotels")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $hotel;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Client::class, inversedBy="reservationhotels")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $client;
  26.     /**
  27.      * @ORM\Column(type="float", nullable=true)
  28.      */
  29.     private $total;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $typepayment;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getHotel(): ?Hotel
  39.     {
  40.         return $this->hotel;
  41.     }
  42.     public function setHotel(?Hotel $hotel): self
  43.     {
  44.         $this->hotel $hotel;
  45.         return $this;
  46.     }
  47.     public function getClient(): ?Client
  48.     {
  49.         return $this->client;
  50.     }
  51.     public function setClient(?Client $client): self
  52.     {
  53.         $this->client $client;
  54.         return $this;
  55.     }
  56.     public function getTotal(): ?float
  57.     {
  58.         return $this->total;
  59.     }
  60.     public function setTotal(?float $total): self
  61.     {
  62.         $this->total $total;
  63.         return $this;
  64.     }
  65.     public function getTypepayment(): ?string
  66.     {
  67.         return $this->typepayment;
  68.     }
  69.     public function setTypepayment(?string $typepayment): self
  70.     {
  71.         $this->typepayment $typepayment;
  72.         return $this;
  73.     }
  74. }