<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* ParametrageEchantillon
*/
#[ORM\Table(name: 'parametrage_echantillon')]
#[ORM\Entity(repositoryClass: \App\Repository\ParametrageEchantillonRepository::class)]
class ParametrageEchantillon
{
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private readonly int $id;
#[ORM\Column(name: 'taille_du_lot_limite_haute', type: 'integer', nullable: true)]
private int $tailleDuLotLimiteHaute;
#[ORM\Column(name: 'Niveau_de_contr', type: 'integer', nullable: true)]
private int $niveauDeContr;
#[ORM\Column(name: 'Taille_echantillon', type: 'integer', nullable: true)]
private int $tailleEchantillon;
#[ORM\Column(name: 'Lettre_code', type: 'string', length: 2, nullable: true)]
private string $lettreCode;
#[ORM\Column(name: 'Ac_critique', type: 'integer', nullable: true)]
private int $acCritique;
#[ORM\Column(name: 'Score_critique', type: 'integer', nullable: true)]
private int $scoreCritique;
#[ORM\Column(name: 'Ac_majeur', type: 'integer', nullable: true)]
private int $acMajeur;
#[ORM\Column(name: 'Score_majeur', type: 'integer', nullable: true)]
private int $scoreMajeur;
#[ORM\Column(name: 'Ac_mineur', type: 'integer', nullable: true)]
private int $acMineur;
#[ORM\Column(name: 'Score_mineur', type: 'integer', nullable: true)]
private int $scoreMineur;
#[ORM\Column(name: 'taille_du_lot_limite_basse', type: 'integer', nullable: true)]
private int $tailleDuLotLimiteBasse;
#[ORM\OneToMany(targetEntity: FicheQualiteSynthese::class, mappedBy: 'parametrage_echantillon')]
private $ficheQualiteSyntheses;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_update = null;
public function __construct()
{
$this->ficheQualiteSyntheses = new ArrayCollection();
}
/**
* Get idparametrageEchantillons
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set tailleDuLotLimiteHaute
*
* @param integer $tailleDuLotLimiteHaute
*
* @return ParametrageEchantillons
*/
public function setTailleDuLotLimiteHaute($tailleDuLotLimiteHaute)
{
$this->tailleDuLotLimiteHaute = $tailleDuLotLimiteHaute;
return $this;
}
/**
* Get tailleDuLotLimiteHaute
*
* @return integer
*/
public function getTailleDuLotLimiteHaute()
{
return $this->tailleDuLotLimiteHaute;
}
/**
* Set niveauDeContr
*
* @param integer $niveauDeContr
*
* @return ParametrageEchantillons
*/
public function setNiveauDeContr($niveauDeContr)
{
$this->niveauDeContr = $niveauDeContr;
return $this;
}
/**
* Get niveauDeContr
*
* @return integer
*/
public function getNiveauDeContr()
{
return $this->niveauDeContr;
}
/**
* Set tailleEchantillon
*
* @param integer $tailleEchantillon
*
* @return ParametrageEchantillons
*/
public function setTailleEchantillon($tailleEchantillon)
{
$this->tailleEchantillon = $tailleEchantillon;
return $this;
}
/**
* Get tailleEchantillon
*
* @return integer
*/
public function getTailleEchantillon()
{
return $this->tailleEchantillon;
}
/**
* Set lettreCode
*
* @param string $lettreCode
*
* @return ParametrageEchantillons
*/
public function setLettreCode($lettreCode)
{
$this->lettreCode = $lettreCode;
return $this;
}
/**
* Get lettreCode
*
* @return string
*/
public function getLettreCode()
{
return $this->lettreCode;
}
/**
* Set acCritique
*
* @param integer $acCritique
*
* @return ParametrageEchantillons
*/
public function setAcCritique($acCritique)
{
$this->acCritique = $acCritique;
return $this;
}
/**
* Get acCritique
*
* @return integer
*/
public function getAcCritique()
{
return $this->acCritique;
}
/**
* Set scoreCritique
*
* @param integer $scoreCritique
*
* @return ParametrageEchantillons
*/
public function setScoreCritique($scoreCritique)
{
$this->scoreCritique = $scoreCritique;
return $this;
}
/**
* Get scoreCritique
*
* @return integer
*/
public function getScoreCritique()
{
return $this->scoreCritique;
}
/**
* Set acMajeur
*
* @param integer $acMajeur
*
* @return ParametrageEchantillons
*/
public function setAcMajeur($acMajeur)
{
$this->acMajeur = $acMajeur;
return $this;
}
/**
* Get acMajeur
*
* @return integer
*/
public function getAcMajeur()
{
return $this->acMajeur;
}
/**
* Set scoreMajeur
*
* @param integer $scoreMajeur
*
* @return ParametrageEchantillons
*/
public function setScoreMajeur($scoreMajeur)
{
$this->scoreMajeur = $scoreMajeur;
return $this;
}
/**
* Get scoreMajeur
*
* @return integer
*/
public function getScoreMajeur()
{
return $this->scoreMajeur;
}
/**
* Set acMineur
*
* @param integer $acMineur
*
* @return ParametrageEchantillons
*/
public function setAcMineur($acMineur)
{
$this->acMineur = $acMineur;
return $this;
}
/**
* Get acMineur
*
* @return integer
*/
public function getAcMineur()
{
return $this->acMineur;
}
/**
* Set scoreMineur
*
* @param integer $scoreMineur
*
* @return ParametrageEchantillons
*/
public function setScoreMineur($scoreMineur)
{
$this->scoreMineur = $scoreMineur;
return $this;
}
/**
* Get scoreMineur
*
* @return integer
*/
public function getScoreMineur()
{
return $this->scoreMineur;
}
/**
* Set tailleDuLotLimiteBasse
*
* @param integer $tailleDuLotLimiteBasse
*
* @return ParametrageEchantillons
*/
public function setTailleDuLotLimiteBasse($tailleDuLotLimiteBasse)
{
$this->tailleDuLotLimiteBasse = $tailleDuLotLimiteBasse;
return $this;
}
/**
* Get tailleDuLotLimiteBasse
*
* @return integer
*/
public function getTailleDuLotLimiteBasse()
{
return $this->tailleDuLotLimiteBasse;
}
/**
* @return Collection|FicheQualiteSynthese[]
*/
public function getFicheQualiteSyntheses(): Collection
{
return $this->ficheQualiteSyntheses;
}
public function addFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self
{
if (!$this->ficheQualiteSyntheses->contains($ficheQualiteSynthesis)) {
$this->ficheQualiteSyntheses[] = $ficheQualiteSynthesis;
$ficheQualiteSynthesis->setParametrageEchantillon($this);
}
return $this;
}
public function removeFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self
{
if ($this->ficheQualiteSyntheses->removeElement($ficheQualiteSynthesis)) {
// set the owning side to null (unless already changed)
if ($ficheQualiteSynthesis->getParametrageEchantillon() === $this) {
$ficheQualiteSynthesis->setParametrageEchantillon(null);
}
}
return $this;
}
public function getDateUpdate(): ?\DateTimeInterface
{
return $this->date_update;
}
public function setDateUpdate(?\DateTimeInterface $date_update): self
{
$this->date_update = $date_update;
return $this;
}
}