src/Entity/FicheQualite.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FicheQualiteRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFicheQualiteRepository::class)]
  8. class FicheQualite
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $reference;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $coloris;
  18.     #[ORM\ManyToOne(targetEntityAtelier::class, inversedBy'ficheQualites')]
  19.     private $atelier;
  20.     #[ORM\ManyToOne(targetEntityTaille::class, inversedBy'ficheQualites')]
  21.     private $taille;
  22.     #[ORM\ManyToOne(targetEntityBonnet::class, inversedBy'ficheQualites')]
  23.     private $bonnet;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $numero_lancement;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $quantite_recu;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $quantite_controle;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $quantite_carton;
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private $ordre_transfert;
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $numero_adr;
  36.     #[ORM\Column(type'string'length255nullabletrue)]
  37.     private $semaine;
  38.     #[ORM\Column(type'datetime'nullabletrue)]
  39.     private $date_affectation;
  40.     #[ORM\Column(type'datetime'nullabletrue)]
  41.     private $date_reception;
  42.     #[ORM\Column(type'datetime'nullabletrue)]
  43.     private $date_disposition;
  44.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'ficheQualitesOuvre')]
  45.     private $user_ouvre;
  46.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'ficheQualitesFerme')]
  47.     private $user_ferme;
  48.     #[ORM\Column(type'datetime'nullabletrue)]
  49.     private $date_ouvre;
  50.     #[ORM\Column(type'boolean'nullabletrue)]
  51.     private int $cotraitance 0;
  52.     #[ORM\ManyToOne(targetEntityCategorieFamille::class, inversedBy'ficheQualites')]
  53.     private $famille;
  54.     #[ORM\OneToMany(targetEntityFicheQualiteMesure::class, mappedBy'fichequalite'cascade: ['persist''remove'])]
  55.     private $mesures;
  56.     #[ORM\Column(type'string'length255nullabletrue)]
  57.     private $quantite_mesure;
  58.     #[ORM\OneToMany(targetEntityFicheQualiteDefaut::class, mappedBy'fichequalite'cascade: ['persist''remove'])]
  59.     private $defauts;
  60.     #[ORM\ManyToOne(targetEntityFichePreserie::class, inversedBy'ficheQualites')]
  61.     private $fichepreserie;
  62.     #[ORM\Column(type'boolean'nullabletrue)]
  63.     private ?bool $ferme false;
  64.     #[ORM\Column(type'datetime'nullabletrue)]
  65.     private $date_fermeture;
  66.     #[ORM\Column(type'string'length255nullabletrue)]
  67.     private $numero_colis;
  68.     #[ORM\Column(type'datetime'nullabletrue)]
  69.     private $date_attente;
  70.     #[ORM\Column(type'string'length255nullabletrue)]
  71.     private $name;
  72.     #[ORM\Column(type'float'nullabletrue)]
  73.     private $score_sp;
  74.     #[ORM\Column(type'float'nullabletrue)]
  75.     private $total_score_sp;
  76.     #[ORM\Column(type'float'nullabletrue)]
  77.     private $pourcent_sp;
  78.     #[ORM\Column(type'integer'nullabletrue)]
  79.     private $total_defaut_critique;
  80.     #[ORM\Column(type'integer'nullabletrue)]
  81.     private $total_defaut_majeur;
  82.     #[ORM\Column(type'integer'nullabletrue)]
  83.     private $total_defaut_mineur;
  84.     #[ORM\Column(type'integer'nullabletrue)]
  85.     private $total_reparation;
  86.     #[ORM\Column(type'integer'nullabletrue)]
  87.     private $total_solde;
  88.     #[ORM\Column(type'boolean'nullabletrue)]
  89.     private int $essayage 0;
  90.     #[ORM\Column(type'text'nullabletrue)]
  91.     private $commentaire_essayage;
  92.     #[ORM\ManyToOne(targetEntityStatutQualite::class, inversedBy'ficheQualites')]
  93.     private $statut;
  94.     #[ORM\ManyToOne(targetEntityAtelierChaine::class, inversedBy'ficheQualites')]
  95.     private $chaine;
  96.     #[ORM\Column(type'float'nullabletrue)]
  97.     private int $temps_passe 0;
  98.     #[ORM\Column(type'datetime'nullabletrue)]
  99.     private $date_debut_temp;
  100.     #[ORM\Column(type'datetime'nullabletrue)]
  101.     private $date_fin_temp;
  102.     #[ORM\ManyToOne(targetEntityDerogation::class, inversedBy'ficheQualites'cascade: ['persist''remove'])]
  103.     private $derogation;
  104.     public function __construct()
  105.     {
  106.         $this->mesures = new ArrayCollection();
  107.         $this->defauts = new ArrayCollection();
  108.     }
  109.     public function getId(): ?int
  110.     {
  111.         return $this->id;
  112.     }
  113.     public function getReference(): ?string
  114.     {
  115.         return $this->reference;
  116.     }
  117.     public function setReference(?string $reference): self
  118.     {
  119.         $this->reference $reference;
  120.         return $this;
  121.     }
  122.     public function getColoris(): ?string
  123.     {
  124.         return $this->coloris;
  125.     }
  126.     public function setColoris(?string $coloris): self
  127.     {
  128.         $this->coloris $coloris;
  129.         return $this;
  130.     }
  131.     public function getAtelier(): ?Atelier
  132.     {
  133.         return $this->atelier;
  134.     }
  135.     public function setAtelier(?Atelier $atelier): self
  136.     {
  137.         $this->atelier $atelier;
  138.         return $this;
  139.     }
  140.     public function getTaille(): ?Taille
  141.     {
  142.         return $this->taille;
  143.     }
  144.     public function setTaille(?Taille $taille): self
  145.     {
  146.         $this->taille $taille;
  147.         return $this;
  148.     }
  149.     public function getBonnet(): ?Bonnet
  150.     {
  151.         return $this->bonnet;
  152.     }
  153.     public function setBonnet(?Bonnet $bonnet): self
  154.     {
  155.         $this->bonnet $bonnet;
  156.         return $this;
  157.     }
  158.     public function getNumeroLancement(): ?string
  159.     {
  160.         return $this->numero_lancement;
  161.     }
  162.     public function setNumeroLancement(?string $numero_lancement): self
  163.     {
  164.         $this->numero_lancement $numero_lancement;
  165.         return $this;
  166.     }
  167.     public function getQuantiteRecu(): ?string
  168.     {
  169.         return $this->quantite_recu;
  170.     }
  171.     public function setQuantiteRecu(?string $quantite_recu): self
  172.     {
  173.         $this->quantite_recu $quantite_recu;
  174.         return $this;
  175.     }
  176.     public function getQuantiteControle(): ?string
  177.     {
  178.         return $this->quantite_controle;
  179.     }
  180.     public function setQuantiteControle(?string $quantite_controle): self
  181.     {
  182.         $this->quantite_controle $quantite_controle;
  183.         return $this;
  184.     }
  185.     public function getQuantiteCarton(): ?string
  186.     {
  187.         return $this->quantite_carton;
  188.     }
  189.     public function setQuantiteCarton(?string $quantite_carton): self
  190.     {
  191.         $this->quantite_carton $quantite_carton;
  192.         return $this;
  193.     }
  194.     public function getOrdreTransfert(): ?string
  195.     {
  196.         return $this->ordre_transfert;
  197.     }
  198.     public function setOrdreTransfert(?string $ordre_transfert): self
  199.     {
  200.         $this->ordre_transfert $ordre_transfert;
  201.         return $this;
  202.     }
  203.     public function getNumeroAdr(): ?string
  204.     {
  205.         return $this->numero_adr;
  206.     }
  207.     public function setNumeroAdr(?string $numero_adr): self
  208.     {
  209.         $this->numero_adr $numero_adr;
  210.         return $this;
  211.     }
  212.     public function getSemaine(): ?string
  213.     {
  214.         return $this->semaine;
  215.     }
  216.     public function setSemaine(?string $semaine): self
  217.     {
  218.         $this->semaine $semaine;
  219.         return $this;
  220.     }
  221.     public function getDateAffectation(): ?\DateTimeInterface
  222.     {
  223.         return $this->date_affectation;
  224.     }
  225.     public function setDateAffectation(?\DateTimeInterface $date_affectation): self
  226.     {
  227.         $this->date_affectation $date_affectation;
  228.         return $this;
  229.     }
  230.     public function getDateReception(): ?\DateTimeInterface
  231.     {
  232.         return $this->date_reception;
  233.     }
  234.     public function setDateReception(?\DateTimeInterface $date_reception): self
  235.     {
  236.         $this->date_reception $date_reception;
  237.         return $this;
  238.     }
  239.     public function getDateDisposition(): ?\DateTimeInterface
  240.     {
  241.         return $this->date_disposition;
  242.     }
  243.     public function setDateDisposition(?\DateTimeInterface $date_disposition): self
  244.     {
  245.         $this->date_disposition $date_disposition;
  246.         return $this;
  247.     }
  248.     public function getUserOuvre(): ?User
  249.     {
  250.         return $this->user_ouvre;
  251.     }
  252.     public function setUserOuvre(?User $user_ouvre): self
  253.     {
  254.         $this->user_ouvre $user_ouvre;
  255.         return $this;
  256.     }
  257.     public function getUserFerme(): ?User
  258.     {
  259.         return $this->user_ferme;
  260.     }
  261.     public function setUserFerme(?User $user_ferme): self
  262.     {
  263.         $this->user_ferme $user_ferme;
  264.         return $this;
  265.     }
  266.     public function getDateOuvre(): ?\DateTimeInterface
  267.     {
  268.         return $this->date_ouvre;
  269.     }
  270.     public function setDateOuvre(?\DateTimeInterface $date_ouvre): self
  271.     {
  272.         $this->date_ouvre $date_ouvre;
  273.         return $this;
  274.     }
  275.     public function getCotraitance(): ?bool
  276.     {
  277.         return $this->cotraitance;
  278.     }
  279.     public function setCotraitance(?bool $cotraitance): self
  280.     {
  281.         $this->cotraitance $cotraitance;
  282.         return $this;
  283.     }
  284.     public function getFamille(): ?CategorieFamille
  285.     {
  286.         return $this->famille;
  287.     }
  288.     public function setFamille(?CategorieFamille $famille): self
  289.     {
  290.         $this->famille $famille;
  291.         return $this;
  292.     }
  293.     /**
  294.      * @return Collection|FicheQualiteMesure[]
  295.      */
  296.     public function getMesures(): Collection
  297.     {
  298.         return $this->mesures;
  299.     }
  300.     public function addMesure(FicheQualiteMesure $ficheQualiteMesure): self
  301.     {
  302.         if (!$this->mesures->contains($ficheQualiteMesure)) {
  303.             $this->mesures[] = $ficheQualiteMesure;
  304.             $ficheQualiteMesure->setFichequalite($this);
  305.         }
  306.         return $this;
  307.     }
  308.     public function removeMesure(FicheQualiteMesure $ficheQualiteMesure): self
  309.     {
  310.         if ($this->mesures->removeElement($ficheQualiteMesure)) {
  311.             // set the owning side to null (unless already changed)
  312.             if ($ficheQualiteMesure->getFichequalite() === $this) {
  313.                 $ficheQualiteMesure->setFichequalite(null);
  314.             }
  315.         }
  316.         return $this;
  317.     }
  318.     public function getQuantiteMesure(): ?string
  319.     {
  320.         return $this->quantite_mesure;
  321.     }
  322.     public function setQuantiteMesure(?string $quantite_mesure): self
  323.     {
  324.         $this->quantite_mesure $quantite_mesure;
  325.         return $this;
  326.     }
  327.     /**
  328.      * @return Collection|FicheQualiteDefaut[]
  329.      */
  330.     public function getDefauts(): Collection
  331.     {
  332.         return $this->defauts;
  333.     }
  334.     public function addDefaut(FicheQualiteDefaut $ficheQualiteDefaut): self
  335.     {
  336.         if (!$this->defauts->contains($ficheQualiteDefaut)) {
  337.             $this->defauts[] = $ficheQualiteDefaut;
  338.             $ficheQualiteDefaut->setFichequalite($this);
  339.         }
  340.         return $this;
  341.     }
  342.     public function removeDefaut(FicheQualiteDefaut $ficheQualiteDefaut): self
  343.     {
  344.         if ($this->defauts->removeElement($ficheQualiteDefaut)) {
  345.             // set the owning side to null (unless already changed)
  346.             if ($ficheQualiteDefaut->getFichequalite() === $this) {
  347.                 $ficheQualiteDefaut->setFichequalite(null);
  348.             }
  349.         }
  350.         return $this;
  351.     }
  352.     public function getFichepreserie(): ?FichePreserie
  353.     {
  354.         return $this->fichepreserie;
  355.     }
  356.     public function setFichepreserie(?FichePreserie $fichepreserie): self
  357.     {
  358.         $this->fichepreserie $fichepreserie;
  359.         return $this;
  360.     }
  361.     public function getFerme(): ?bool
  362.     {
  363.         return $this->ferme;
  364.     }
  365.     public function setFerme(?bool $ferme): self
  366.     {
  367.         $this->ferme $ferme;
  368.         return $this;
  369.     }
  370.     public function getDateFermeture(): ?\DateTimeInterface
  371.     {
  372.         return $this->date_fermeture;
  373.     }
  374.     public function setDateFermeture(?\DateTimeInterface $date_fermeture): self
  375.     {
  376.         $this->date_fermeture $date_fermeture;
  377.         return $this;
  378.     }
  379.     public function getNumeroColis(): ?string
  380.     {
  381.         return $this->numero_colis;
  382.     }
  383.     public function setNumeroColis(?string $numero_colis): self
  384.     {
  385.         $this->numero_colis $numero_colis;
  386.         return $this;
  387.     }
  388.     public function getDateAttente(): ?\DateTimeInterface
  389.     {
  390.         return $this->date_attente;
  391.     }
  392.     public function setDateAttente(?\DateTimeInterface $date_attente): self
  393.     {
  394.         $this->date_attente $date_attente;
  395.         return $this;
  396.     }
  397.     public function getName(): ?string
  398.     {
  399.         return $this->name;
  400.     }
  401.     public function setName(?string $name): self
  402.     {
  403.         $this->name $name;
  404.         return $this;
  405.     }
  406.     public function getScoreSp(): ?float
  407.     {
  408.         return $this->score_sp;
  409.     }
  410.     public function setScoreSp(?float $score_sp): self
  411.     {
  412.         $this->score_sp $score_sp;
  413.         return $this;
  414.     }
  415.     public function getTotalScoreSp(): ?float
  416.     {
  417.         return $this->total_score_sp;
  418.     }
  419.     public function setTotalScoreSp(?float $total_score_sp): self
  420.     {
  421.         $this->total_score_sp $total_score_sp;
  422.         return $this;
  423.     }
  424.     public function getPourcentSp(): ?float
  425.     {
  426.         return $this->pourcent_sp;
  427.     }
  428.     public function setPourcentSp(?float $pourcent_sp): self
  429.     {
  430.         $this->pourcent_sp $pourcent_sp;
  431.         return $this;
  432.     }
  433.     public function getTotalDefautCritique(): ?int
  434.     {
  435.         return $this->total_defaut_critique;
  436.     }
  437.     public function setTotalDefautCritique(?int $total_defaut_critique): self
  438.     {
  439.         $this->total_defaut_critique $total_defaut_critique;
  440.         return $this;
  441.     }
  442.     public function getTotalDefautMajeur(): ?int
  443.     {
  444.         return $this->total_defaut_majeur;
  445.     }
  446.     public function setTotalDefautMajeur(?int $total_defaut_majeur): self
  447.     {
  448.         $this->total_defaut_majeur $total_defaut_majeur;
  449.         return $this;
  450.     }
  451.     public function getTotalDefautMineur(): ?int
  452.     {
  453.         return $this->total_defaut_mineur;
  454.     }
  455.     public function setTotalDefautMineur(?int $total_defaut_mineur): self
  456.     {
  457.         $this->total_defaut_mineur $total_defaut_mineur;
  458.         return $this;
  459.     }
  460.     public function getTotalReparation(): ?int
  461.     {
  462.         return $this->total_reparation;
  463.     }
  464.     public function setTotalReparation(?int $total_reparation): self
  465.     {
  466.         $this->total_reparation $total_reparation;
  467.         return $this;
  468.     }
  469.     public function getTotalSolde(): ?int
  470.     {
  471.         return $this->total_solde;
  472.     }
  473.     public function setTotalSolde(?int $total_solde): self
  474.     {
  475.         $this->total_solde $total_solde;
  476.         return $this;
  477.     }
  478.     public function getEssayage(): ?bool
  479.     {
  480.         return $this->essayage;
  481.     }
  482.     public function setEssayage(?bool $essayage): self
  483.     {
  484.         $this->essayage $essayage;
  485.         return $this;
  486.     }
  487.     public function getCommentaireEssayage(): ?string
  488.     {
  489.         return $this->commentaire_essayage;
  490.     }
  491.     public function setCommentaireEssayage(?string $commentaire_essayage): self
  492.     {
  493.         $this->commentaire_essayage $commentaire_essayage;
  494.         return $this;
  495.     }
  496.     public function getStatut(): ?StatutQualite
  497.     {
  498.         return $this->statut;
  499.     }
  500.     public function setStatut(?StatutQualite $statut): self
  501.     {
  502.         $this->statut $statut;
  503.         return $this;
  504.     }
  505.     public function getChaine(): ?AtelierChaine
  506.     {
  507.         return $this->chaine;
  508.     }
  509.     public function setChaine(?AtelierChaine $chaine): self
  510.     {
  511.         $this->chaine $chaine;
  512.         return $this;
  513.     }
  514.     public function getTempsPasse(): ?float
  515.     {
  516.         return $this->temps_passe;
  517.     }
  518.     public function setTempsPasse(?float $temps_passe): self
  519.     {
  520.         $this->temps_passe $temps_passe;
  521.         return $this;
  522.     }
  523.     public function getDateDebutTemp(): ?\DateTimeInterface
  524.     {
  525.         return $this->date_debut_temp;
  526.     }
  527.     public function setDateDebutTemp(?\DateTimeInterface $date_debut_temp): self
  528.     {
  529.         $this->date_debut_temp $date_debut_temp;
  530.         return $this;
  531.     }
  532.     public function getDateFinTemp(): ?\DateTimeInterface
  533.     {
  534.         return $this->date_fin_temp;
  535.     }
  536.     public function setDateFinTemp(?\DateTimeInterface $date_fin_temp): self
  537.     {
  538.         $this->date_fin_temp $date_fin_temp;
  539.         return $this;
  540.     }
  541.     public function getDerogation(): ?Derogation
  542.     {
  543.         return $this->derogation;
  544.     }
  545.     public function setDerogation(?Derogation $derogation): self
  546.     {
  547.         $this->derogation $derogation;
  548.         return $this;
  549.     }
  550. }