<?php
namespace App\Entity;
use App\Repository\LigneFactureRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=LigneFactureRepository::class)
*/
class LigneFacture
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=EnteteFacture::class, inversedBy="ligneFactures", cascade={"persist"})
*/
private $entetefacture;
/**
* @ORM\OneToOne(targetEntity=Financement::class, inversedBy="ligneFacture", cascade={"persist", "remove"})
*/
private $financement;
/**
* @ORM\Column(type="string", length=255)
*/
private $codeformation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $wordingformation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $periode;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $quantite;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $prixunitaire;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $remise;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $prixunitairenet;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $tva;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $montantttc;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
*/
private $created_at;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
*/
private $updated_at;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $montantht;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $montantregle;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $restearegler;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
public function getId(): ?int
{
return $this->id;
}
public function getEntetefacture(): ?EnteteFacture
{
return $this->entetefacture;
}
public function setEntetefacture(?EnteteFacture $entetefacture): self
{
$this->entetefacture = $entetefacture;
return $this;
}
public function getFinancement(): ?Financement
{
return $this->financement;
}
public function setFinancement(?Financement $financement): self
{
$this->financement = $financement;
return $this;
}
public function getCodeformation(): ?string
{
return $this->codeformation;
}
public function setCodeformation(string $codeformation): self
{
$this->codeformation = $codeformation;
return $this;
}
public function getWordingformation(): ?string
{
return $this->wordingformation;
}
public function setWordingformation(?string $wordingformation): self
{
$this->wordingformation = $wordingformation;
return $this;
}
public function getPeriode(): ?string
{
return $this->periode;
}
public function setPeriode(?string $periode): self
{
$this->periode = $periode;
return $this;
}
public function getQuantite(): ?int
{
return $this->quantite;
}
public function setQuantite(?int $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getPrixunitaire(): ?float
{
return $this->prixunitaire;
}
public function setPrixunitaire(?float $prixunitaire): self
{
$this->prixunitaire = $prixunitaire;
return $this;
}
public function getRemise(): ?float
{
return $this->remise;
}
public function setRemise(?float $remise): self
{
$this->remise = $remise;
return $this;
}
public function getPrixunitairenet(): ?float
{
return $this->prixunitairenet;
}
public function setPrixunitairenet(?float $prixunitairenet): self
{
$this->prixunitairenet = $prixunitairenet;
return $this;
}
public function getTva(): ?float
{
return $this->tva;
}
public function setTva(?float $tva): self
{
$this->tva = $tva;
return $this;
}
public function getMontantttc(): ?float
{
return $this->montantttc;
}
public function setMontantttc(?float $montantttc): self
{
$this->montantttc = $montantttc;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->created_at;
}
public function setCreatedAt(?\DateTimeImmutable $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updated_at;
}
public function setUpdatedAt(?\DateTimeImmutable $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getMontantht(): ?float
{
return $this->montantht;
}
public function setMontantht(?float $montantht): self
{
$this->montantht = $montantht;
return $this;
}
public function getMontantregle(): ?float
{
return $this->montantregle;
}
public function setMontantregle(?float $montantregle): self
{
$this->montantregle = $montantregle;
return $this;
}
public function getRestearegler(): ?float
{
return $this->restearegler;
}
public function setRestearegler(?float $restearegler): self
{
$this->restearegler = $restearegler;
return $this;
}
}