src/Entity/Pricearrangement.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PricearrangementRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PricearrangementRepository::class)
  7.  */
  8. class Pricearrangement
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Hotelarrangement::class, inversedBy="pricearrangements")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $hotelarrangement;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Hotelprice::class, inversedBy="pricearrangements")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $hotelprice;
  26.     /**
  27.      * @ORM\Column(type="float", nullable=true)
  28.      */
  29.     private $price;
  30.     /**
  31.      * @ORM\Column(type="float", nullable=true)
  32.      */
  33.     private $marge;
  34.     /**
  35.      * @ORM\Column(type="boolean", nullable=true)
  36.      */
  37.     private $etat;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getHotelarrangement(): ?Hotelarrangement
  43.     {
  44.         return $this->hotelarrangement;
  45.     }
  46.     public function setHotelarrangement(?Hotelarrangement $hotelarrangement): self
  47.     {
  48.         $this->hotelarrangement $hotelarrangement;
  49.         return $this;
  50.     }
  51.     public function getHotelprice(): ?Hotelprice
  52.     {
  53.         return $this->hotelprice;
  54.     }
  55.     public function setHotelprice(?Hotelprice $hotelprice): self
  56.     {
  57.         $this->hotelprice $hotelprice;
  58.         return $this;
  59.     }
  60.     public function getPrice(): ?float
  61.     {
  62.         return $this->price;
  63.     }
  64.     public function setPrice(?float $price): self
  65.     {
  66.         $this->price $price;
  67.         return $this;
  68.     }
  69.     public function getMarge(): ?float
  70.     {
  71.         return $this->marge;
  72.     }
  73.     public function setMarge(?float $marge): self
  74.     {
  75.         $this->marge $marge;
  76.         return $this;
  77.     }
  78.     public function isEtat(): ?bool
  79.     {
  80.         return $this->etat;
  81.     }
  82.     public function setEtat(?bool $etat): self
  83.     {
  84.         $this->etat $etat;
  85.         return $this;
  86.     }
  87. }