<?php
namespace App\Entity;
use App\Repository\TarifRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TarifRepository::class)
*/
class Tarif
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="float", nullable="true")
*/
private $montant;
/**
* @ORM\ManyToOne(targetEntity=TypeTarifs::class, inversedBy="tarifs")
*/
private $typeTarifs;
/**
* @ORM\ManyToOne(targetEntity=QuantiteBouteille::class, inversedBy="tarifs")
*/
private $quantiteBouteille;
public function getId(): ?int
{
return $this->id;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant($montant): self
{
if($montant == ""){
$this->montant = null;
}else{
$this->montant = $montant;
}
return $this;
}
public function getTypeTarifs(): ?TypeTarifs
{
return $this->typeTarifs;
}
public function setTypeTarifs(?TypeTarifs $typeTarifs): self
{
$this->typeTarifs = $typeTarifs;
return $this;
}
public function getQuantiteBouteille(): ?QuantiteBouteille
{
return $this->quantiteBouteille;
}
public function setQuantiteBouteille(?QuantiteBouteille $quantiteBouteille): self
{
$this->quantiteBouteille = $quantiteBouteille;
return $this;
}
}