src/Entity/FicheQualiteCent.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FicheQualiteCentRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFicheQualiteCentRepository::class)]
  8. class FicheQualiteCent
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $name;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $reference;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $coloris;
  20.     #[ORM\ManyToOne(targetEntityAtelier::class, inversedBy'ficheQualiteCents')]
  21.     private $atelier;
  22.     #[ORM\ManyToOne(targetEntityTaille::class, inversedBy'ficheQualiteCents')]
  23.     private $taille;
  24.     #[ORM\ManyToOne(targetEntityBonnet::class, inversedBy'ficheQualiteCents')]
  25.     private $bonnet;
  26.     #[ORM\Column(type'float'nullabletrue)]
  27.     private $quantite;
  28.     #[ORM\Column(type'datetime'nullabletrue)]
  29.     private $date_controle;
  30.     #[ORM\Column(type'datetime'nullabletrue)]
  31.     private $date_fermeture;
  32.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'ficheQualiteCents')]
  33.     private $user_ouvre;
  34.     #[ORM\ManyToOne(targetEntityCategorieFamille::class, inversedBy'ficheQualiteCents')]
  35.     private $famille;
  36.     #[ORM\ManyToOne(targetEntityFichePreserie::class, inversedBy'ficheQualiteCents')]
  37.     private $fichepreserie;
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private $numero_colis;
  40.     #[ORM\Column(type'integer'nullabletrue)]
  41.     private $total_defaut_mineur;
  42.     #[ORM\Column(type'integer'nullabletrue)]
  43.     private $total_defaut_majeur;
  44.     #[ORM\Column(type'integer'nullabletrue)]
  45.     private $total_defaut_critique;
  46.     #[ORM\Column(type'integer'nullabletrue)]
  47.     private $total_reparation;
  48.     #[ORM\Column(type'integer'nullabletrue)]
  49.     private $total_solde;
  50.     #[ORM\OneToMany(targetEntityFicheQualiteCentDefaut::class, mappedBy'fichequalite'cascade: ['persist''remove'])]
  51.     private $defauts;
  52.     #[ORM\OneToMany(targetEntityFicheQualiteCentMesure::class, mappedBy'fichequalite'cascade: ['persist''remove'])]
  53.     private $mesures;
  54.     #[ORM\Column(type'boolean'nullabletrue)]
  55.     private $ferme;
  56.     #[ORM\Column(type'datetime'nullabletrue)]
  57.     private $date_reception;
  58.     #[ORM\Column(type'string'length255nullabletrue)]
  59.     private $numero_lancement;
  60.     #[ORM\Column(type'string'length255nullabletrue)]
  61.     private $quantite_controle;
  62.     #[ORM\Column(type'boolean'nullabletrue)]
  63.     private int $cotraitance 0;
  64.     #[ORM\Column(type'datetime'nullabletrue)]
  65.     private $date_ouvre;
  66.     #[ORM\Column(type'string'length255nullabletrue)]
  67.     private $semaine;
  68.     #[ORM\ManyToOne(targetEntityAtelierChaine::class, inversedBy'ficheQualiteCents')]
  69.     private $chaine;
  70.     #[ORM\Column(type'float'nullabletrue)]
  71.     private int $temps_passe 0;
  72.     #[ORM\Column(type'datetime'nullabletrue)]
  73.     private $date_attente;
  74.     #[ORM\Column(type'datetime'nullabletrue)]
  75.     private $date_debut_temp;
  76.     #[ORM\Column(type'datetime'nullabletrue)]
  77.     private $date_fin_temp;
  78.     public function __construct()
  79.     {
  80.         $this->defauts = new ArrayCollection();
  81.         $this->mesures = new ArrayCollection();
  82.     }
  83.     public function getId(): ?int
  84.     {
  85.         return $this->id;
  86.     }
  87.     public function getName(): ?string
  88.     {
  89.         return $this->name;
  90.     }
  91.     public function setName(?string $name): self
  92.     {
  93.         $this->name $name;
  94.         return $this;
  95.     }
  96.     public function getReference(): ?string
  97.     {
  98.         return $this->reference;
  99.     }
  100.     public function setReference(?string $reference): self
  101.     {
  102.         $this->reference $reference;
  103.         return $this;
  104.     }
  105.     public function getColoris(): ?string
  106.     {
  107.         return $this->coloris;
  108.     }
  109.     public function setColoris(?string $coloris): self
  110.     {
  111.         $this->coloris $coloris;
  112.         return $this;
  113.     }
  114.     public function getAtelier(): ?Atelier
  115.     {
  116.         return $this->atelier;
  117.     }
  118.     public function setAtelier(?Atelier $atelier): self
  119.     {
  120.         $this->atelier $atelier;
  121.         return $this;
  122.     }
  123.     public function getTaille(): ?Taille
  124.     {
  125.         return $this->taille;
  126.     }
  127.     public function setTaille(?Taille $taille): self
  128.     {
  129.         $this->taille $taille;
  130.         return $this;
  131.     }
  132.     public function getBonnet(): ?Bonnet
  133.     {
  134.         return $this->bonnet;
  135.     }
  136.     public function setBonnet(?Bonnet $bonnet): self
  137.     {
  138.         $this->bonnet $bonnet;
  139.         return $this;
  140.     }
  141.     public function getQuantite(): ?float
  142.     {
  143.         return $this->quantite;
  144.     }
  145.     public function setQuantite(?float $quantite): self
  146.     {
  147.         $this->quantite $quantite;
  148.         return $this;
  149.     }
  150.     public function getDateControle(): ?\DateTimeInterface
  151.     {
  152.         return $this->date_controle;
  153.     }
  154.     public function setDateControle(?\DateTimeInterface $date_controle): self
  155.     {
  156.         $this->date_controle $date_controle;
  157.         return $this;
  158.     }
  159.     public function getDateFermeture(): ?\DateTimeInterface
  160.     {
  161.         return $this->date_fermeture;
  162.     }
  163.     public function setDateFermeture(?\DateTimeInterface $date_fermeture): self
  164.     {
  165.         $this->date_fermeture $date_fermeture;
  166.         return $this;
  167.     }
  168.     public function getUserOuvre(): ?User
  169.     {
  170.         return $this->user_ouvre;
  171.     }
  172.     public function setUserOuvre(?User $user_ouvre): self
  173.     {
  174.         $this->user_ouvre $user_ouvre;
  175.         return $this;
  176.     }
  177.     public function getFamille(): ?CategorieFamille
  178.     {
  179.         return $this->famille;
  180.     }
  181.     public function setFamille(?CategorieFamille $famille): self
  182.     {
  183.         $this->famille $famille;
  184.         return $this;
  185.     }
  186.     public function getFichepreserie(): ?FichePreserie
  187.     {
  188.         return $this->fichepreserie;
  189.     }
  190.     public function setFichepreserie(?FichePreserie $fichepreserie): self
  191.     {
  192.         $this->fichepreserie $fichepreserie;
  193.         return $this;
  194.     }
  195.     public function getNumeroColis(): ?string
  196.     {
  197.         return $this->numero_colis;
  198.     }
  199.     public function setNumeroColis(?string $numero_colis): self
  200.     {
  201.         $this->numero_colis $numero_colis;
  202.         return $this;
  203.     }
  204.     public function getTotalDefautMineur(): ?int
  205.     {
  206.         return $this->total_defaut_mineur;
  207.     }
  208.     public function setTotalDefautMineur(?int $total_defaut_mineur): self
  209.     {
  210.         $this->total_defaut_mineur $total_defaut_mineur;
  211.         return $this;
  212.     }
  213.     public function getTotalDefautMajeur(): ?int
  214.     {
  215.         return $this->total_defaut_majeur;
  216.     }
  217.     public function setTotalDefautMajeur(?int $total_defaut_majeur): self
  218.     {
  219.         $this->total_defaut_majeur $total_defaut_majeur;
  220.         return $this;
  221.     }
  222.     public function getTotalDefautCritique(): ?int
  223.     {
  224.         return $this->total_defaut_critique;
  225.     }
  226.     public function setTotalDefautCritique(?int $total_defaut_critique): self
  227.     {
  228.         $this->total_defaut_critique $total_defaut_critique;
  229.         return $this;
  230.     }
  231.     public function getTotalReparation(): ?int
  232.     {
  233.         return $this->total_reparation;
  234.     }
  235.     public function setTotalReparation(?int $total_reparation): self
  236.     {
  237.         $this->total_reparation $total_reparation;
  238.         return $this;
  239.     }
  240.     public function getTotalSolde(): ?int
  241.     {
  242.         return $this->total_solde;
  243.     }
  244.     public function setTotalSolde(?int $total_solde): self
  245.     {
  246.         $this->total_solde $total_solde;
  247.         return $this;
  248.     }
  249.     /**
  250.      * @return Collection|FicheQualiteCentDefaut[]
  251.      */
  252.     public function getDefauts(): Collection
  253.     {
  254.         return $this->defauts;
  255.     }
  256.     public function addDefaut(FicheQualiteCentDefaut $ficheQualiteCentDefaut): self
  257.     {
  258.         if (!$this->defauts->contains($ficheQualiteCentDefaut)) {
  259.             $this->defauts[] = $ficheQualiteCentDefaut;
  260.             $ficheQualiteCentDefaut->setFichequalite($this);
  261.         }
  262.         return $this;
  263.     }
  264.     public function removeDefaut(FicheQualiteCentDefaut $ficheQualiteCentDefaut): self
  265.     {
  266.         if ($this->defauts->removeElement($ficheQualiteCentDefaut)) {
  267.             // set the owning side to null (unless already changed)
  268.             if ($ficheQualiteCentDefaut->getFichequalite() === $this) {
  269.                 $ficheQualiteCentDefaut->setFichequalite(null);
  270.             }
  271.         }
  272.         return $this;
  273.     }
  274.     /**
  275.      * @return Collection|FicheQualiteCentMesure[]
  276.      */
  277.     public function getMesures(): Collection
  278.     {
  279.         return $this->mesures;
  280.     }
  281.     public function addMesure(FicheQualiteCentMesure $ficheQualiteCentMesure): self
  282.     {
  283.         if (!$this->mesures->contains($ficheQualiteCentMesure)) {
  284.             $this->mesures[] = $ficheQualiteCentMesure;
  285.             $ficheQualiteCentMesure->setFichequalite($this);
  286.         }
  287.         return $this;
  288.     }
  289.     public function removeMesure(FicheQualiteCentMesure $ficheQualiteCentMesure): self
  290.     {
  291.         if ($this->mesures->removeElement($ficheQualiteCentMesure)) {
  292.             // set the owning side to null (unless already changed)
  293.             if ($ficheQualiteCentMesure->getFichequalite() === $this) {
  294.                 $ficheQualiteCentMesure->setFichequalite(null);
  295.             }
  296.         }
  297.         return $this;
  298.     }
  299.     public function getFerme(): ?bool
  300.     {
  301.         return $this->ferme;
  302.     }
  303.     public function setFerme(?bool $ferme): self
  304.     {
  305.         $this->ferme $ferme;
  306.         return $this;
  307.     }
  308.     public function getDateReception(): ?\DateTimeInterface
  309.     {
  310.         return $this->date_reception;
  311.     }
  312.     public function setDateReception(?\DateTimeInterface $date_reception): self
  313.     {
  314.         $this->date_reception $date_reception;
  315.         return $this;
  316.     }
  317.     public function getNumeroLancement(): ?string
  318.     {
  319.         return $this->numero_lancement;
  320.     }
  321.     public function setNumeroLancement(?string $numero_lancement): self
  322.     {
  323.         $this->numero_lancement $numero_lancement;
  324.         return $this;
  325.     }
  326.     public function getQuantiteControle(): ?string
  327.     {
  328.         return $this->quantite_controle;
  329.     }
  330.     public function setQuantiteControle(?string $quantite_controle): self
  331.     {
  332.         $this->quantite_controle $quantite_controle;
  333.         return $this;
  334.     }
  335.     public function getCotraitance(): ?bool
  336.     {
  337.         return $this->cotraitance;
  338.     }
  339.     public function setCotraitance(?bool $cotraitance): self
  340.     {
  341.         $this->cotraitance $cotraitance;
  342.         return $this;
  343.     }
  344.     public function getDateOuvre(): ?\DateTimeInterface
  345.     {
  346.         return $this->date_ouvre;
  347.     }
  348.     public function setDateOuvre(?\DateTimeInterface $date_ouvre): self
  349.     {
  350.         $this->date_ouvre $date_ouvre;
  351.         return $this;
  352.     }
  353.     public function getSemaine(): ?string
  354.     {
  355.         return $this->semaine;
  356.     }
  357.     public function setSemaine(?string $semaine): self
  358.     {
  359.         $this->semaine $semaine;
  360.         return $this;
  361.     }
  362.     public function getChaine(): ?AtelierChaine
  363.     {
  364.         return $this->chaine;
  365.     }
  366.     public function setChaine(?AtelierChaine $chaine): self
  367.     {
  368.         $this->chaine $chaine;
  369.         return $this;
  370.     }
  371.     public function getTempsPasse(): ?float
  372.     {
  373.         return $this->temps_passe;
  374.     }
  375.     public function setTempsPasse(?float $temps_passe): self
  376.     {
  377.         $this->temps_passe $temps_passe;
  378.         return $this;
  379.     }
  380.     public function getDateAttente(): ?\DateTimeInterface
  381.     {
  382.         return $this->date_attente;
  383.     }
  384.     public function setDateAttente(?\DateTimeInterface $date_attente): self
  385.     {
  386.         $this->date_attente $date_attente;
  387.         return $this;
  388.     }
  389.     public function getDateDebutTemp(): ?\DateTimeInterface
  390.     {
  391.         return $this->date_debut_temp;
  392.     }
  393.     public function setDateDebutTemp(?\DateTimeInterface $date_debut_temp): self
  394.     {
  395.         $this->date_debut_temp $date_debut_temp;
  396.         return $this;
  397.     }
  398.     public function getDateFinTemp(): ?\DateTimeInterface
  399.     {
  400.         return $this->date_fin_temp;
  401.     }
  402.     public function setDateFinTemp(?\DateTimeInterface $date_fin_temp): self
  403.     {
  404.         $this->date_fin_temp $date_fin_temp;
  405.         return $this;
  406.     }
  407. }