src/Entity/FicheQualiteAtelierAuditeur.php line 11

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