<?php
namespace App\Entity;
use App\Repository\PricearrangementRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PricearrangementRepository::class)
*/
class Pricearrangement
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Hotelarrangement::class, inversedBy="pricearrangements")
* @ORM\JoinColumn(nullable=false)
*/
private $hotelarrangement;
/**
* @ORM\ManyToOne(targetEntity=Hotelprice::class, inversedBy="pricearrangements")
* @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 getHotelarrangement(): ?Hotelarrangement
{
return $this->hotelarrangement;
}
public function setHotelarrangement(?Hotelarrangement $hotelarrangement): self
{
$this->hotelarrangement = $hotelarrangement;
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;
}
}