<?php
namespace App\Entity;
use App\Repository\FraisRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FraisRepository::class)
*/
class Frais
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $titre;
/**
* @ORM\Column(type="text")
*/
private $description;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $montant;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $alternativeMontant;
/**
* @ORM\ManyToOne(targetEntity=Zone::class, inversedBy="frais")
*/
private $zone;
public function __construct()
{
}
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getMontant(): ?float
{
return $this->montant;
}
public function setMontant(float $montant): self
{
$this->montant = $montant;
return $this;
}
public function getAlternativeMontant(): ?string
{
return $this->alternativeMontant;
}
public function setAlternativeMontant(?string $alternativeMontant): self
{
$this->alternativeMontant = $alternativeMontant;
return $this;
}
public function getZone(): ?Zone
{
return $this->zone;
}
public function setZone(?Zone $zone): self
{
$this->zone = $zone;
return $this;
}
}