src/Entity/ParametrageEchantillon.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * ParametrageEchantillon
  9.  */
  10. #[ORM\Table(name'parametrage_echantillon')]
  11. #[ORM\Entity(repositoryClass\App\Repository\ParametrageEchantillonRepository::class)]
  12. class ParametrageEchantillon
  13. {
  14.     #[ORM\Column(name'id'type'integer'nullablefalse)]
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  17.     private readonly int $id;
  18.     #[ORM\Column(name'taille_du_lot_limite_haute'type'integer'nullabletrue)]
  19.     private int $tailleDuLotLimiteHaute;
  20.     #[ORM\Column(name'Niveau_de_contr'type'integer'nullabletrue)]
  21.     private int $niveauDeContr;
  22.     #[ORM\Column(name'Taille_echantillon'type'integer'nullabletrue)]
  23.     private int $tailleEchantillon;
  24.     #[ORM\Column(name'Lettre_code'type'string'length2nullabletrue)]
  25.     private string $lettreCode;
  26.     #[ORM\Column(name'Ac_critique'type'integer'nullabletrue)]
  27.     private int $acCritique;
  28.     #[ORM\Column(name'Score_critique'type'integer'nullabletrue)]
  29.     private int $scoreCritique;
  30.     #[ORM\Column(name'Ac_majeur'type'integer'nullabletrue)]
  31.     private int $acMajeur;
  32.     #[ORM\Column(name'Score_majeur'type'integer'nullabletrue)]
  33.     private int $scoreMajeur;
  34.     #[ORM\Column(name'Ac_mineur'type'integer'nullabletrue)]
  35.     private int $acMineur;
  36.     #[ORM\Column(name'Score_mineur'type'integer'nullabletrue)]
  37.     private int $scoreMineur;
  38.     #[ORM\Column(name'taille_du_lot_limite_basse'type'integer'nullabletrue)]
  39.     private int $tailleDuLotLimiteBasse;
  40.     #[ORM\OneToMany(targetEntityFicheQualiteSynthese::class, mappedBy'parametrage_echantillon')]
  41.     private $ficheQualiteSyntheses;
  42.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  43.     private ?\DateTimeInterface $date_update null;
  44.     public function __construct()
  45.     {
  46.         $this->ficheQualiteSyntheses = new ArrayCollection();
  47.     }
  48.     /**
  49.      * Get idparametrageEchantillons
  50.      *
  51.      * @return integer
  52.      */
  53.     public function getId()
  54.     {
  55.         return $this->id;
  56.     }
  57.     /**
  58.      * Set tailleDuLotLimiteHaute
  59.      *
  60.      * @param integer $tailleDuLotLimiteHaute
  61.      *
  62.      * @return ParametrageEchantillons
  63.      */
  64.     public function setTailleDuLotLimiteHaute($tailleDuLotLimiteHaute)
  65.     {
  66.         $this->tailleDuLotLimiteHaute $tailleDuLotLimiteHaute;
  67.         return $this;
  68.     }
  69.     /**
  70.      * Get tailleDuLotLimiteHaute
  71.      *
  72.      * @return integer
  73.      */
  74.     public function getTailleDuLotLimiteHaute()
  75.     {
  76.         return $this->tailleDuLotLimiteHaute;
  77.     }
  78.     /**
  79.      * Set niveauDeContr
  80.      *
  81.      * @param integer $niveauDeContr
  82.      *
  83.      * @return ParametrageEchantillons
  84.      */
  85.     public function setNiveauDeContr($niveauDeContr)
  86.     {
  87.         $this->niveauDeContr $niveauDeContr;
  88.         return $this;
  89.     }
  90.     /**
  91.      * Get niveauDeContr
  92.      *
  93.      * @return integer
  94.      */
  95.     public function getNiveauDeContr()
  96.     {
  97.         return $this->niveauDeContr;
  98.     }
  99.     /**
  100.      * Set tailleEchantillon
  101.      *
  102.      * @param integer $tailleEchantillon
  103.      *
  104.      * @return ParametrageEchantillons
  105.      */
  106.     public function setTailleEchantillon($tailleEchantillon)
  107.     {
  108.         $this->tailleEchantillon $tailleEchantillon;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get tailleEchantillon
  113.      *
  114.      * @return integer
  115.      */
  116.     public function getTailleEchantillon()
  117.     {
  118.         return $this->tailleEchantillon;
  119.     }
  120.     /**
  121.      * Set lettreCode
  122.      *
  123.      * @param string $lettreCode
  124.      *
  125.      * @return ParametrageEchantillons
  126.      */
  127.     public function setLettreCode($lettreCode)
  128.     {
  129.         $this->lettreCode $lettreCode;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get lettreCode
  134.      *
  135.      * @return string
  136.      */
  137.     public function getLettreCode()
  138.     {
  139.         return $this->lettreCode;
  140.     }
  141.     /**
  142.      * Set acCritique
  143.      *
  144.      * @param integer $acCritique
  145.      *
  146.      * @return ParametrageEchantillons
  147.      */
  148.     public function setAcCritique($acCritique)
  149.     {
  150.         $this->acCritique $acCritique;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get acCritique
  155.      *
  156.      * @return integer
  157.      */
  158.     public function getAcCritique()
  159.     {
  160.         return $this->acCritique;
  161.     }
  162.     /**
  163.      * Set scoreCritique
  164.      *
  165.      * @param integer $scoreCritique
  166.      *
  167.      * @return ParametrageEchantillons
  168.      */
  169.     public function setScoreCritique($scoreCritique)
  170.     {
  171.         $this->scoreCritique $scoreCritique;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Get scoreCritique
  176.      *
  177.      * @return integer
  178.      */
  179.     public function getScoreCritique()
  180.     {
  181.         return $this->scoreCritique;
  182.     }
  183.     /**
  184.      * Set acMajeur
  185.      *
  186.      * @param integer $acMajeur
  187.      *
  188.      * @return ParametrageEchantillons
  189.      */
  190.     public function setAcMajeur($acMajeur)
  191.     {
  192.         $this->acMajeur $acMajeur;
  193.         return $this;
  194.     }
  195.     /**
  196.      * Get acMajeur
  197.      *
  198.      * @return integer
  199.      */
  200.     public function getAcMajeur()
  201.     {
  202.         return $this->acMajeur;
  203.     }
  204.     /**
  205.      * Set scoreMajeur
  206.      *
  207.      * @param integer $scoreMajeur
  208.      *
  209.      * @return ParametrageEchantillons
  210.      */
  211.     public function setScoreMajeur($scoreMajeur)
  212.     {
  213.         $this->scoreMajeur $scoreMajeur;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get scoreMajeur
  218.      *
  219.      * @return integer
  220.      */
  221.     public function getScoreMajeur()
  222.     {
  223.         return $this->scoreMajeur;
  224.     }
  225.     /**
  226.      * Set acMineur
  227.      *
  228.      * @param integer $acMineur
  229.      *
  230.      * @return ParametrageEchantillons
  231.      */
  232.     public function setAcMineur($acMineur)
  233.     {
  234.         $this->acMineur $acMineur;
  235.         return $this;
  236.     }
  237.     /**
  238.      * Get acMineur
  239.      *
  240.      * @return integer
  241.      */
  242.     public function getAcMineur()
  243.     {
  244.         return $this->acMineur;
  245.     }
  246.     /**
  247.      * Set scoreMineur
  248.      *
  249.      * @param integer $scoreMineur
  250.      *
  251.      * @return ParametrageEchantillons
  252.      */
  253.     public function setScoreMineur($scoreMineur)
  254.     {
  255.         $this->scoreMineur $scoreMineur;
  256.         return $this;
  257.     }
  258.     /**
  259.      * Get scoreMineur
  260.      *
  261.      * @return integer
  262.      */
  263.     public function getScoreMineur()
  264.     {
  265.         return $this->scoreMineur;
  266.     }
  267.     /**
  268.      * Set tailleDuLotLimiteBasse
  269.      *
  270.      * @param integer $tailleDuLotLimiteBasse
  271.      *
  272.      * @return ParametrageEchantillons
  273.      */
  274.     public function setTailleDuLotLimiteBasse($tailleDuLotLimiteBasse)
  275.     {
  276.         $this->tailleDuLotLimiteBasse $tailleDuLotLimiteBasse;
  277.         return $this;
  278.     }
  279.     /**
  280.      * Get tailleDuLotLimiteBasse
  281.      *
  282.      * @return integer
  283.      */
  284.     public function getTailleDuLotLimiteBasse()
  285.     {
  286.         return $this->tailleDuLotLimiteBasse;
  287.     }
  288.     /**
  289.      * @return Collection|FicheQualiteSynthese[]
  290.      */
  291.     public function getFicheQualiteSyntheses(): Collection
  292.     {
  293.         return $this->ficheQualiteSyntheses;
  294.     }
  295.     public function addFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self
  296.     {
  297.         if (!$this->ficheQualiteSyntheses->contains($ficheQualiteSynthesis)) {
  298.             $this->ficheQualiteSyntheses[] = $ficheQualiteSynthesis;
  299.             $ficheQualiteSynthesis->setParametrageEchantillon($this);
  300.         }
  301.         return $this;
  302.     }
  303.     public function removeFicheQualiteSynthesis(FicheQualiteSynthese $ficheQualiteSynthesis): self
  304.     {
  305.         if ($this->ficheQualiteSyntheses->removeElement($ficheQualiteSynthesis)) {
  306.             // set the owning side to null (unless already changed)
  307.             if ($ficheQualiteSynthesis->getParametrageEchantillon() === $this) {
  308.                 $ficheQualiteSynthesis->setParametrageEchantillon(null);
  309.             }
  310.         }
  311.         return $this;
  312.     }
  313.     public function getDateUpdate(): ?\DateTimeInterface
  314.     {
  315.         return $this->date_update;
  316.     }
  317.     public function setDateUpdate(?\DateTimeInterface $date_update): self
  318.     {
  319.         $this->date_update $date_update;
  320.         return $this;
  321.     }
  322. }