<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\SousJacentRepository")
*/
class SousJacent
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $produit_en_gestion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $numero;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $hscode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $donneur_d_ordre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $stock;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tc;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom_scientifique;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $origine;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $certification;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $idea_scoring;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $prod_annuelle;
/**
* @ORM\Column(type="text", nullable=true, nullable=true)
*/
private $crit_org;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $crit_ph;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $crit_mic;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $concervation;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $domaine_d_utilisation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type_marq_ut;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type_marq_colis;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $localisation_ut;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $localisation_colis;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $signification_marq_ut;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $signification_marq_colis;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $presentation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nature_emballage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $dimenssion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $poids_emballage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $poids_fixe_ou_variable;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $poids_net;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sous_emballage1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sous_emballage2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sous_emballage3;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sous_emballage4;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sous_emballage5;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sous_emballage6;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre_de_colis_par_couche;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre_de_couche_par_palette;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre_de_colis_par_palette;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre_d_unite_par_palette;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $dimension_palette;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $poids_net_palette;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $px_spot;
/**
* @ORM\ManyToMany(targetEntity="App\Entity\Unite", inversedBy="sousJacents")
*/
private $px_unite;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $unite4;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $vol_disp;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $qt_min;
/**
* @ORM\OneToMany(targetEntity="App\Entity\AdminDonneurOrdre", mappedBy="sous_jacent")
*/
private $adminDonneurOrdres;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Appariement", mappedBy="sous_jacent")
*/
private $appariements;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Transaction", mappedBy="sous_jacent")
*/
private $transactions;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Operation", mappedBy="sous_jacent")
*/
private $operations;
/**
* @ORM\OneToMany(targetEntity="App\Entity\AdminDonneurOrdre", mappedBy="sousJacent1")
*/
private $adminDonneurOrdres1;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\AdminDonneurOrdre", inversedBy="sousJacents")
*/
private $mandat;
/**
* @ORM\OneToMany(targetEntity="App\Entity\AdminDonneurOrdre", mappedBy="sousJacent2")
*/
private $adminDonneurOrdres2;
/**
* @ORM\OneToMany(targetEntity="App\Entity\LetterOfIntentToPurchase", mappedBy="sousJacent")
*/
private $letterOfIntentToPurchases;
/**
* @ORM\OneToMany(targetEntity="App\Entity\AppelDeMarge", mappedBy="sous_jacent")
*/
private $appelDeMarges;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Products", inversedBy="sousJacents")
*/
private $filiere;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Qualite", inversedBy="sousJacents")
*/
private $qualite;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Unite", inversedBy="qt_min_unite")
*/
private $qt_min_unite;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="sousJacents")
*/
private $unite2;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="unite2")
*/
private $unite1;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Niveau", inversedBy="sousJacents")
*/
private $niveau;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Unite", inversedBy="unite3")
*/
private $unite3;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="sousJacents")
*/
private $status;
/**
* @ORM\OneToMany(targetEntity="App\Entity\TraitementDsDemdDachat", mappedBy="sous_jacent")
*/
private $traitementDsDemdDachats;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Stade", inversedBy="sousJacents")
*/
private $stade;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Quotation", mappedBy="sous_jacent")
*/
private $quotations;
/**
* @ORM\OneToMany(targetEntity="App\Entity\DemandeDeCotation", mappedBy="sousjacent")
*/
private $demandeDeCotations;
public function __construct(){
$this->createdAt = new \DateTime('now');
if (!isset($this->numero)){
$this->numero = 'SJ'.random_int(10,500).date('s');
}else{
$this->numero = 'SJ'.random_int(10,500).date('s');
}
$this->px_unite = new ArrayCollection();
$this->adminDonneurOrdres = new ArrayCollection();
$this->appariements = new ArrayCollection();
$this->transactions = new ArrayCollection();
$this->operations = new ArrayCollection();
$this->adminDonneurOrdres1 = new ArrayCollection();
$this->adminDonneurOrdres2 = new ArrayCollection();
$this->letterOfIntentToPurchases = new ArrayCollection();
$this->appelDeMarges = new ArrayCollection();
$this->traitementDsDemdDachats = new ArrayCollection();
$this->quotations = new ArrayCollection();
$this->demandeDeCotations = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getProduitEnGestion(): ?string
{
return $this->produit_en_gestion;
}
public function setProduitEnGestion(string $produit_en_gestion): self
{
$this->produit_en_gestion = $produit_en_gestion;
return $this;
}
public function getNumero(): ?string
{
return $this->numero;
}
public function setNumero(string $numero): self
{
$this->numero = $numero;
return $this;
}
public function getDonneurDOrdre(): ?string
{
return $this->donneur_d_ordre;
}
public function setDonneurDOrdre(string $donneur_d_ordre): self
{
$this->donneur_d_ordre = $donneur_d_ordre;
return $this;
}
public function getQtMin(): ?int
{
return $this->qt_min;
}
public function setQtMin(int $qt_min): self
{
$this->qt_min = $qt_min;
return $this;
}
public function getStock(): ?string
{
return $this->stock;
}
public function setStock(string $stock): self
{
$this->stock = $stock;
return $this;
}
public function getStockUnite(): ?string
{
return $this->stock_unite;
}
public function setStockUnite(string $stock_unite): self
{
$this->stock_unite = $stock_unite;
return $this;
}
public function getTc(): ?string
{
return $this->tc;
}
public function setTc(string $tc): self
{
$this->tc = $tc;
return $this;
}
public function getNomScientifique(): ?string
{
return $this->nom_scientifique;
}
public function setNomScientifique(string $nom_scientifique): self
{
$this->nom_scientifique = $nom_scientifique;
return $this;
}
public function getOrigine(): ?string
{
return $this->origine;
}
public function setOrigine(string $origine): self
{
$this->origine = $origine;
return $this;
}
public function getCertification(): ?string
{
return $this->certification;
}
public function setCertification(string $certification): self
{
$this->certification = $certification;
return $this;
}
public function getIdeaScoring(): ?int
{
return $this->idea_scoring;
}
public function setIdeaScoring(int $idea_scoring): self
{
$this->idea_scoring = $idea_scoring;
return $this;
}
public function getProdAnnuelle(): ?string
{
return $this->prod_annuelle;
}
public function setProdAnnuelle(string $prod_annuelle): self
{
$this->prod_annuelle = $prod_annuelle;
return $this;
}
public function getCritOrg(): ?string
{
return $this->crit_org;
}
public function setCritOrg(string $crit_org): self
{
$this->crit_org = $crit_org;
return $this;
}
public function getCritPh(): ?string
{
return $this->crit_ph;
}
public function setCritPh(?string $crit_ph): self
{
$this->crit_ph = $crit_ph;
return $this;
}
public function getCritMic(): ?string
{
return $this->crit_mic;
}
public function setCritMic(?string $crit_mic): self
{
$this->crit_mic = $crit_mic;
return $this;
}
public function getConcervation(): ?string
{
return $this->concervation;
}
public function setConcervation(?string $concervation): self
{
$this->concervation = $concervation;
return $this;
}
public function getDomaineDUtilisation(): ?string
{
return $this->domaine_d_utilisation;
}
public function setDomaineDUtilisation(?string $domaine_d_utilisation): self
{
$this->domaine_d_utilisation = $domaine_d_utilisation;
return $this;
}
public function getTypeMarqUt(): ?string
{
return $this->type_marq_ut;
}
public function setTypeMarqUt(string $type_marq_ut): self
{
$this->type_marq_ut = $type_marq_ut;
return $this;
}
public function getTypeMarqColis(): ?string
{
return $this->type_marq_colis;
}
public function setTypeMarqColis(string $type_marq_colis): self
{
$this->type_marq_colis = $type_marq_colis;
return $this;
}
public function getLocalisationUt(): ?string
{
return $this->localisation_ut;
}
public function setLocalisationUt(string $localisation_ut): self
{
$this->localisation_ut = $localisation_ut;
return $this;
}
public function getLocalisationColis(): ?string
{
return $this->localisation_colis;
}
public function setLocalisationColis(string $localisation_colis): self
{
$this->localisation_colis = $localisation_colis;
return $this;
}
public function getSignificationMarqUt(): ?string
{
return $this->signification_marq_ut;
}
public function setSignificationMarqUt(string $signification_marq_ut): self
{
$this->signification_marq_ut = $signification_marq_ut;
return $this;
}
public function getSignificationMarqColis(): ?string
{
return $this->signification_marq_colis;
}
public function setSignificationMarqColis(string $signification_marq_colis): self
{
$this->signification_marq_colis = $signification_marq_colis;
return $this;
}
public function getPresentation(): ?string
{
return $this->presentation;
}
public function setPresentation(string $presentation): self
{
$this->presentation = $presentation;
return $this;
}
public function getNatureEmballage(): ?string
{
return $this->nature_emballage;
}
public function setNatureEmballage(string $nature_emballage): self
{
$this->nature_emballage = $nature_emballage;
return $this;
}
public function getDimenssion(): ?string
{
return $this->dimenssion;
}
public function setDimenssion(string $dimenssion): self
{
$this->dimenssion = $dimenssion;
return $this;
}
public function getPoidsEmballage(): ?string
{
return $this->poids_emballage;
}
public function setPoidsEmballage(string $poids_emballage): self
{
$this->poids_emballage = $poids_emballage;
return $this;
}
public function getPoidsFixeOuVariable(): ?string
{
return $this->poids_fixe_ou_variable;
}
public function setPoidsFixeOuVariable(string $poids_fixe_ou_variable): self
{
$this->poids_fixe_ou_variable = $poids_fixe_ou_variable;
return $this;
}
public function getPoidsNet(): ?string
{
return $this->poids_net;
}
public function setPoidsNet(string $poids_net): self
{
$this->poids_net = $poids_net;
return $this;
}
public function getSousEmballage1(): ?string
{
return $this->sous_emballage1;
}
public function setSousEmballage1(string $sous_emballage1): self
{
$this->sous_emballage1 = $sous_emballage1;
return $this;
}
public function getSousEmballage2(): ?string
{
return $this->sous_emballage2;
}
public function setSousEmballage2(string $sous_emballage2): self
{
$this->sous_emballage2 = $sous_emballage2;
return $this;
}
public function getSousEmballage3(): ?string
{
return $this->sous_emballage3;
}
public function setSousEmballage3(string $sous_emballage3): self
{
$this->sous_emballage3 = $sous_emballage3;
return $this;
}
public function getSousEmballage4(): ?string
{
return $this->sous_emballage4;
}
public function setSousEmballage4(string $sous_emballage4): self
{
$this->sous_emballage4 = $sous_emballage4;
return $this;
}
public function getSousEmballage5(): ?string
{
return $this->sous_emballage5;
}
public function setSousEmballage5(string $sous_emballage5): self
{
$this->sous_emballage5 = $sous_emballage5;
return $this;
}
public function getSousEmballage6(): ?string
{
return $this->sous_emballage6;
}
public function setSousEmballage6(string $sous_emballage6): self
{
$this->sous_emballage6 = $sous_emballage6;
return $this;
}
public function getNombreDeColisParCouche(): ?string
{
return $this->nombre_de_colis_par_couche;
}
public function setNombreDeColisParCouche(?string $nombre_de_colis_par_couche): self
{
$this->nombre_de_colis_par_couche = $nombre_de_colis_par_couche;
return $this;
}
public function getNombreDeCoucheParPalette(): ?string
{
return $this->nombre_de_couche_par_palette;
}
public function setNombreDeCoucheParPalette(string $nombre_de_couche_par_palette): self
{
$this->nombre_de_couche_par_palette = $nombre_de_couche_par_palette;
return $this;
}
public function getNombreDeColisParPalette(): ?string
{
return $this->nombre_de_colis_par_palette;
}
public function setNombreDeColisParPalette(string $nombre_de_colis_par_palette): self
{
$this->nombre_de_colis_par_palette = $nombre_de_colis_par_palette;
return $this;
}
public function getNombreDUniteParPalette(): ?string
{
return $this->nombre_d_unite_par_palette;
}
public function setNombreDUniteParPalette(string $nombre_d_unite_par_palette): self
{
$this->nombre_d_unite_par_palette = $nombre_d_unite_par_palette;
return $this;
}
public function getDimensionPalette(): ?string
{
return $this->dimension_palette;
}
public function setDimensionPalette(string $dimension_palette): self
{
$this->dimension_palette = $dimension_palette;
return $this;
}
public function getPoidsNetPalette(): ?string
{
return $this->poids_net_palette;
}
public function setPoidsNetPalette(string $poids_net_palette): self
{
$this->poids_net_palette = $poids_net_palette;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getHscode(): ?string
{
return $this->hscode;
}
public function setHscode(?string $hscode): self
{
$this->hscode = $hscode;
return $this;
}
public function __toString(): string
{
return $this->produit_en_gestion;
}
public function getPxSpot(): ?string
{
return $this->px_spot;
}
public function setPxSpot(?string $px_spot): self
{
$this->px_spot = $px_spot;
return $this;
}
/**
* @return Collection|Unite[]
*/
public function getPxUnite(): Collection
{
return $this->px_unite;
}
public function addPxUnite(Unite $pxUnite): self
{
if (!$this->px_unite->contains($pxUnite)) {
$this->px_unite[] = $pxUnite;
}
return $this;
}
public function removePxUnite(Unite $pxUnite): self
{
if ($this->px_unite->contains($pxUnite)) {
$this->px_unite->removeElement($pxUnite);
}
return $this;
}
public function getUnite4(): ?string
{
return $this->unite4;
}
public function setUnite4(?string $unite4): self
{
$this->unite4 = $unite4;
return $this;
}
public function getVolDisp(): ?int
{
return $this->vol_disp;
}
public function setVolDisp(?int $vol_disp): self
{
$this->vol_disp = $vol_disp;
return $this;
}
/**
* @return Collection|AdminDonneurOrdre[]
*/
public function getAdminDonneurOrdres(): Collection
{
return $this->adminDonneurOrdres;
}
public function addAdminDonneurOrdre(AdminDonneurOrdre $adminDonneurOrdre): self
{
if (!$this->adminDonneurOrdres->contains($adminDonneurOrdre)) {
$this->adminDonneurOrdres[] = $adminDonneurOrdre;
$adminDonneurOrdre->setSousJacent($this);
}
return $this;
}
public function removeAdminDonneurOrdre(AdminDonneurOrdre $adminDonneurOrdre): self
{
if ($this->adminDonneurOrdres->contains($adminDonneurOrdre)) {
$this->adminDonneurOrdres->removeElement($adminDonneurOrdre);
// set the owning side to null (unless already changed)
if ($adminDonneurOrdre->getSousJacent() === $this) {
$adminDonneurOrdre->setSousJacent(null);
}
}
return $this;
}
/**
* @return Collection|Appariement[]
*/
public function getAppariements(): Collection
{
return $this->appariements;
}
public function addAppariement(Appariement $appariement): self
{
if (!$this->appariements->contains($appariement)) {
$this->appariements[] = $appariement;
$appariement->setSousJacent($this);
}
return $this;
}
public function removeAppariement(Appariement $appariement): self
{
if ($this->appariements->contains($appariement)) {
$this->appariements->removeElement($appariement);
// set the owning side to null (unless already changed)
if ($appariement->getSousJacent() === $this) {
$appariement->setSousJacent(null);
}
}
return $this;
}
/**
* @return Collection|Transaction[]
*/
public function getTransactions(): Collection
{
return $this->transactions;
}
public function addTransaction(Transaction $transaction): self
{
if (!$this->transactions->contains($transaction)) {
$this->transactions[] = $transaction;
$transaction->setSousJacent($this);
}
return $this;
}
public function removeTransaction(Transaction $transaction): self
{
if ($this->transactions->contains($transaction)) {
$this->transactions->removeElement($transaction);
// set the owning side to null (unless already changed)
if ($transaction->getSousJacent() === $this) {
$transaction->setSousJacent(null);
}
}
return $this;
}
/**
* @return Collection|Operation[]
*/
public function getOperations(): Collection
{
return $this->operations;
}
public function addOperation(Operation $operation): self
{
if (!$this->operations->contains($operation)) {
$this->operations[] = $operation;
$operation->setSousJacent($this);
}
return $this;
}
public function removeOperation(Operation $operation): self
{
if ($this->operations->contains($operation)) {
$this->operations->removeElement($operation);
// set the owning side to null (unless already changed)
if ($operation->getSousJacent() === $this) {
$operation->setSousJacent(null);
}
}
return $this;
}
/**
* @return Collection|AdminDonneurOrdre[]
*/
public function getAdminDonneurOrdres1(): Collection
{
return $this->adminDonneurOrdres1;
}
public function addAdminDonneurOrdres1(AdminDonneurOrdre $adminDonneurOrdres1): self
{
if (!$this->adminDonneurOrdres1->contains($adminDonneurOrdres1)) {
$this->adminDonneurOrdres1[] = $adminDonneurOrdres1;
$adminDonneurOrdres1->setSousJacent1($this);
}
return $this;
}
public function removeAdminDonneurOrdres1(AdminDonneurOrdre $adminDonneurOrdres1): self
{
if ($this->adminDonneurOrdres1->contains($adminDonneurOrdres1)) {
$this->adminDonneurOrdres1->removeElement($adminDonneurOrdres1);
// set the owning side to null (unless already changed)
if ($adminDonneurOrdres1->getSousJacent1() === $this) {
$adminDonneurOrdres1->setSousJacent1(null);
}
}
return $this;
}
/**
* @return Collection|AdminDonneurOrdre[]
*/
public function getAdminDonneurOrdres2(): Collection
{
return $this->adminDonneurOrdres2;
}
public function addAdminDonneurOrdres2(AdminDonneurOrdre $adminDonneurOrdres2): self
{
if (!$this->adminDonneurOrdres2->contains($adminDonneurOrdres2)) {
$this->adminDonneurOrdres2[] = $adminDonneurOrdres2;
$adminDonneurOrdres2->setSousJacent2($this);
}
return $this;
}
public function removeAdminDonneurOrdres2(AdminDonneurOrdre $adminDonneurOrdres2): self
{
if ($this->adminDonneurOrdres2->contains($adminDonneurOrdres2)) {
$this->adminDonneurOrdres2->removeElement($adminDonneurOrdres2);
// set the owning side to null (unless already changed)
if ($adminDonneurOrdres2->getSousJacent2() === $this) {
$adminDonneurOrdres2->setSousJacent2(null);
}
}
return $this;
}
/**
* @return Collection|LetterOfIntentToPurchase[]
*/
public function getLetterOfIntentToPurchases(): Collection
{
return $this->letterOfIntentToPurchases;
}
public function addLetterOfIntentToPurchase(LetterOfIntentToPurchase $letterOfIntentToPurchase): self
{
if (!$this->letterOfIntentToPurchases->contains($letterOfIntentToPurchase)) {
$this->letterOfIntentToPurchases[] = $letterOfIntentToPurchase;
$letterOfIntentToPurchase->setSousJacent($this);
}
return $this;
}
public function removeLetterOfIntentToPurchase(LetterOfIntentToPurchase $letterOfIntentToPurchase): self
{
if ($this->letterOfIntentToPurchases->contains($letterOfIntentToPurchase)) {
$this->letterOfIntentToPurchases->removeElement($letterOfIntentToPurchase);
// set the owning side to null (unless already changed)
if ($letterOfIntentToPurchase->getSousJacent() === $this) {
$letterOfIntentToPurchase->setSousJacent(null);
}
}
return $this;
}
/**
* @return Collection|AppelDeMarge[]
*/
public function getAppelDeMarges(): Collection
{
return $this->appelDeMarges;
}
public function addAppelDeMarge(AppelDeMarge $appelDeMarge): self
{
if (!$this->appelDeMarges->contains($appelDeMarge)) {
$this->appelDeMarges[] = $appelDeMarge;
$appelDeMarge->setSousJacent($this);
}
return $this;
}
public function removeAppelDeMarge(AppelDeMarge $appelDeMarge): self
{
if ($this->appelDeMarges->contains($appelDeMarge)) {
$this->appelDeMarges->removeElement($appelDeMarge);
// set the owning side to null (unless already changed)
if ($appelDeMarge->getSousJacent() === $this) {
$appelDeMarge->setSousJacent(null);
}
}
return $this;
}
public function getFiliere(): ?Products
{
return $this->filiere;
}
public function setFiliere(?Products $filiere): self
{
$this->filiere = $filiere;
return $this;
}
public function getQualite(): ?Qualite
{
return $this->qualite;
}
public function setQualite(?Qualite $qualite): self
{
$this->qualite = $qualite;
return $this;
}
public function getMandat(): ?AdminDonneurOrdre
{
return $this->mandat;
}
public function setMandat(?AdminDonneurOrdre $mandat): self
{
$this->mandat = $mandat;
return $this;
}
public function getQtMinUnite(): ?Unite
{
return $this->qt_min_unite;
}
public function setQtMinUnite(?Unite $qt_min_unite): self
{
$this->qt_min_unite = $qt_min_unite;
return $this;
}
public function getUnite2(): ?Devise
{
return $this->unite2;
}
public function setUnite2(?Devise $unite2): self
{
$this->unite2 = $unite2;
return $this;
}
public function getUnite1(): ?Devise
{
return $this->unite1;
}
public function setUnite1(?Devise $unite1): self
{
$this->unite1 = $unite1;
return $this;
}
public function getNiveau(): ?Niveau
{
return $this->niveau;
}
public function setNiveau(?Niveau $niveau): self
{
$this->niveau = $niveau;
return $this;
}
public function getUnite3(): ?Unite
{
return $this->unite3;
}
public function setUnite3(?Unite $unite3): self
{
$this->unite3 = $unite3;
return $this;
}
public function getStatus(): ?Status
{
return $this->status;
}
public function setStatus(?Status $status): self
{
$this->status = $status;
return $this;
}
/**
* @return Collection|TraitementDsDemdDachat[]
*/
public function getTraitementDsDemdDachats(): Collection
{
return $this->traitementDsDemdDachats;
}
public function addTraitementDsDemdDachat(TraitementDsDemdDachat $traitementDsDemdDachat): self
{
if (!$this->traitementDsDemdDachats->contains($traitementDsDemdDachat)) {
$this->traitementDsDemdDachats[] = $traitementDsDemdDachat;
$traitementDsDemdDachat->setSousJacent($this);
}
return $this;
}
public function removeTraitementDsDemdDachat(TraitementDsDemdDachat $traitementDsDemdDachat): self
{
if ($this->traitementDsDemdDachats->contains($traitementDsDemdDachat)) {
$this->traitementDsDemdDachats->removeElement($traitementDsDemdDachat);
// set the owning side to null (unless already changed)
if ($traitementDsDemdDachat->getSousJacent() === $this) {
$traitementDsDemdDachat->setSousJacent(null);
}
}
return $this;
}
public function getStade(): ?Stade
{
return $this->stade;
}
public function setStade(?Stade $stade): self
{
$this->stade = $stade;
return $this;
}
/**
* @return Collection|Quotation[]
*/
public function getQuotations(): Collection
{
return $this->quotations;
}
public function addQuotation(Quotation $quotation): self
{
if (!$this->quotations->contains($quotation)) {
$this->quotations[] = $quotation;
$quotation->setSousJacent($this);
}
return $this;
}
public function removeQuotation(Quotation $quotation): self
{
if ($this->quotations->contains($quotation)) {
$this->quotations->removeElement($quotation);
// set the owning side to null (unless already changed)
if ($quotation->getSousJacent() === $this) {
$quotation->setSousJacent(null);
}
}
return $this;
}
/**
* @return Collection|DemandeDeCotation[]
*/
public function getDemandeDeCotations(): Collection
{
return $this->demandeDeCotations;
}
public function addDemandeDeCotation(DemandeDeCotation $demandeDeCotation): self
{
if (!$this->demandeDeCotations->contains($demandeDeCotation)) {
$this->demandeDeCotations[] = $demandeDeCotation;
$demandeDeCotation->setSousjacent($this);
}
return $this;
}
public function removeDemandeDeCotation(DemandeDeCotation $demandeDeCotation): self
{
if ($this->demandeDeCotations->contains($demandeDeCotation)) {
$this->demandeDeCotations->removeElement($demandeDeCotation);
// set the owning side to null (unless already changed)
if ($demandeDeCotation->getSousjacent() === $this) {
$demandeDeCotation->setSousjacent(null);
}
}
return $this;
}
}