<?php
namespace App\Entity;
use App\Repository\ChargeRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ChargeRepository::class)
*/
class Charge
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date")
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $agent;
/**
* @ORM\Column(type="string", length=255)
*/
private $designation;
/**
* @ORM\Column(type="decimal", precision=10, scale=2)
*/
private $montantHT;
/**
* @ORM\Column(type="string", length=50)
*/
private $tauxTVA;
/**
* @ORM\Column(type="decimal", precision=10, scale=2)
*/
private $montantTVA;
/**
* @ORM\Column(type="decimal", precision=10, scale=2)
*/
private $montantTTC;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datePaiement;
/**
* @ORM\Column(type="string", length=255)
*/
private $categorieDesignation;
/**
* @ORM\Column(type="boolean")
*/
private $isEntrepriseCharge = false;
/**
* @ORM\Column(type="boolean")
*/
private $isMensuel = false;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $categoriePersonnalisee;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getAgent(): ?User
{
return $this->agent;
}
public function setAgent(?User $agent): self
{
$this->agent = $agent;
return $this;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(string $designation): self
{
$this->designation = $designation;
return $this;
}
public function getMontantHT()
{
return $this->montantHT;
}
public function setMontantHT($montantHT): self
{
if (is_string($montantHT)) {
$montantHT = str_replace([' ', ','], ['', '.'], $montantHT);
}
$this->montantHT = $montantHT;
return $this;
}
public function getTauxTVA(): ?string
{
return $this->tauxTVA;
}
public function setTauxTVA(?string $tauxTVA): self
{
$this->tauxTVA = $tauxTVA;
return $this;
}
public function getMontantTVA()
{
return $this->montantTVA;
}
public function setMontantTVA($montantTVA): self
{
if (is_string($montantTVA)) {
$montantTVA = str_replace([' ', ','], ['', '.'], $montantTVA);
}
$this->montantTVA = $montantTVA;
return $this;
}
public function getMontantTTC()
{
return $this->montantTTC;
}
public function setMontantTTC($montantTTC): self
{
if (is_string($montantTTC)) {
$montantTTC = str_replace([' ', ','], ['', '.'], $montantTTC);
}
$this->montantTTC = $montantTTC;
return $this;
}
public function getDatePaiement(): ?\DateTimeInterface
{
return $this->datePaiement;
}
public function setDatePaiement(?\DateTimeInterface $datePaiement): self
{
$this->datePaiement = $datePaiement;
return $this;
}
public function getCategorieDesignation(): ?string
{
return $this->categorieDesignation;
}
public function setCategorieDesignation(string $categorieDesignation): self
{
$this->categorieDesignation = $categorieDesignation;
return $this;
}
public function getIsEntrepriseCharge(): ?bool
{
return $this->isEntrepriseCharge;
}
public function setIsEntrepriseCharge(bool $isEntrepriseCharge): self
{
$this->isEntrepriseCharge = $isEntrepriseCharge;
return $this;
}
public function getIsMensuel(): ?bool
{
return $this->isMensuel;
}
public function setIsMensuel(bool $isMensuel): self
{
$this->isMensuel = $isMensuel;
return $this;
}
public function getCategoriePersonnalisee(): ?string
{
return $this->categoriePersonnalisee;
}
public function setCategoriePersonnalisee(?string $categoriePersonnalisee): self
{
$this->categoriePersonnalisee = $categoriePersonnalisee;
return $this;
}
}