<?php
namespace App\Entity;
use App\Repository\HistoriquedemandedevisRepository;
use DateTimeInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: HistoriquedemandedevisRepository::class)]
class Historiquedemandedevis
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $vendeur = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $adresse = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $telphvendeur1 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $telphvendeur2 = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $num = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $date = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $reference = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $code = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $base = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $taux = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $montant = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $total = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $totalht = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $qttotal = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $totalttc = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $statut = null;
#[ORM\ManyToOne(inversedBy: 'historiquedemandedevis')]
private ?Client $client = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $timbre = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $idfacture = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $oldtype = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $retour = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $frtour = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fav = null;
#[ORM\ManyToOne(inversedBy: 'historiquedemandedevis')]
private ?User $user = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?DateTimeInterface $datecreation = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $demandedevisold = null;
#[ORM\OneToMany(mappedBy: 'historiquedemandedevis', targetEntity: Historiqueproduit::class, cascade: ["remove"])]
private Collection $historiqueproduits;
#[ORM\Column(length: 255, nullable: true)]
private ?string $typearchive = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $iddevisold = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $modedepaiement = null;
public function __construct()
{
$this->historiqueproduits = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getVendeur(): ?string
{
return $this->vendeur;
}
public function setVendeur(?string $vendeur): static
{
$this->vendeur = $vendeur;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): static
{
$this->adresse = $adresse;
return $this;
}
public function getTelphvendeur1(): ?string
{
return $this->telphvendeur1;
}
public function setTelphvendeur1(?string $telphvendeur1): static
{
$this->telphvendeur1 = $telphvendeur1;
return $this;
}
public function getTelphvendeur2(): ?string
{
return $this->telphvendeur2;
}
public function setTelphvendeur2(?string $telphvendeur2): static
{
$this->telphvendeur2 = $telphvendeur2;
return $this;
}
public function getNum(): ?string
{
return $this->num;
}
public function setNum(?string $num): static
{
$this->num = $num;
return $this;
}
public function getDate(): ?DateTimeInterface
{
return $this->date;
}
public function setDate(?DateTimeInterface $date): static
{
$this->date = $date;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): static
{
$this->reference = $reference;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): static
{
$this->code = $code;
return $this;
}
public function getBase(): ?string
{
return $this->base;
}
public function setBase(?string $base): static
{
$this->base = $base;
return $this;
}
public function getTaux(): ?string
{
return $this->taux;
}
public function setTaux(?string $taux): static
{
$this->taux = $taux;
return $this;
}
public function getMontant(): ?string
{
return $this->montant;
}
public function setMontant(?string $montant): static
{
$this->montant = $montant;
return $this;
}
public function getTotal(): ?string
{
return $this->total;
}
public function setTotal(?string $total): static
{
$this->total = $total;
return $this;
}
public function getTotalht(): ?string
{
return $this->totalht;
}
public function setTotalht(?string $totalht): static
{
$this->totalht = $totalht;
return $this;
}
public function getQttotal(): ?string
{
return $this->qttotal;
}
public function setQttotal(?string $qttotal): static
{
$this->qttotal = $qttotal;
return $this;
}
public function getTotalttc(): ?string
{
return $this->totalttc;
}
public function setTotalttc(?string $totalttc): static
{
$this->totalttc = $totalttc;
return $this;
}
public function getStatut(): ?string
{
return $this->statut;
}
public function setStatut(?string $statut): static
{
$this->statut = $statut;
return $this;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setClient(?Client $client): static
{
$this->client = $client;
return $this;
}
public function getTimbre(): ?string
{
return $this->timbre;
}
public function setTimbre(?string $timbre): static
{
$this->timbre = $timbre;
return $this;
}
public function getIdfacture(): ?string
{
return $this->idfacture;
}
public function setIdfacture(?string $idfacture): static
{
$this->idfacture = $idfacture;
return $this;
}
public function getOldtype(): ?string
{
return $this->oldtype;
}
public function setOldtype(?string $oldtype): static
{
$this->oldtype = $oldtype;
return $this;
}
public function getRetour(): ?string
{
return $this->retour;
}
public function setRetour(?string $retour): static
{
$this->retour = $retour;
return $this;
}
public function getFrtour(): ?string
{
return $this->frtour;
}
public function setFrtour(?string $frtour): static
{
$this->frtour = $frtour;
return $this;
}
public function getFav(): ?string
{
return $this->fav;
}
public function setFav(?string $fav): static
{
$this->fav = $fav;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): static
{
$this->user = $user;
return $this;
}
public function getDatecreation(): ?DateTimeInterface
{
return $this->datecreation;
}
public function setDatecreation(?DateTimeInterface $datecreation): static
{
$this->datecreation = $datecreation;
return $this;
}
public function getDemandedevisold(): ?string
{
return $this->demandedevisold;
}
public function setDemandedevisold(?string $demandedevisold): static
{
$this->demandedevisold = $demandedevisold;
return $this;
}
/**
* @return Collection<int, Historiqueproduit>
*/
public function getHistoriqueproduits(): Collection
{
return $this->historiqueproduits;
}
public function addHistoriqueproduit(Historiqueproduit $historiqueproduit): static
{
if (!$this->historiqueproduits->contains($historiqueproduit)) {
$this->historiqueproduits->add($historiqueproduit);
$historiqueproduit->setHistoriquedemandedevis($this);
}
return $this;
}
public function removeHistoriqueproduit(Historiqueproduit $historiqueproduit): static
{
if ($this->historiqueproduits->removeElement($historiqueproduit)) {
// set the owning side to null (unless already changed)
if ($historiqueproduit->getHistoriquedemandedevis() === $this) {
$historiqueproduit->setHistoriquedemandedevis(null);
}
}
return $this;
}
public function getTypearchive(): ?string
{
return $this->typearchive;
}
public function setTypearchive(?string $typearchive): static
{
$this->typearchive = $typearchive;
return $this;
}
public function getIddevisold(): ?string
{
return $this->iddevisold;
}
public function setIddevisold(?string $iddevisold): static
{
$this->iddevisold = $iddevisold;
return $this;
}
public function getModedepaiement(): ?string
{
return $this->modedepaiement;
}
public function setModedepaiement(?string $modedepaiement): static
{
$this->modedepaiement = $modedepaiement;
return $this;
}
}