<?php
namespace App\Entity;
use App\Repository\FicheControlePreserieRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @Vich\Uploadable
*/
#[ORM\Entity(repositoryClass: FicheControlePreserieRepository::class)]
class FicheControlePreserie
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $reference;
#[ORM\ManyToOne(targetEntity: FichePreserie::class, inversedBy: 'ficheControlePreseries')]
private $fichepreserie;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $coloris;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'ficheControlePreseries')]
private $user_ouvre;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_controle;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_fermeture;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_controle_atelier;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_reception;
#[ORM\Column(type: 'integer', nullable: true)]
private $numero_colis;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $numero_lancement;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $quantite;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaire_essayage;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_essayage1")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier1 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_essayage2")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier2 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_essayage3")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier3 = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_essayage1;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_essayage2;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_essayage3;
#[ORM\ManyToOne(targetEntity: StatutPreserie::class, inversedBy: 'ficheControlePreseries')]
private $statut;
#[ORM\ManyToOne(targetEntity: Atelier::class, inversedBy: 'ficheControlePreseries')]
private $atelier;
#[ORM\Column(type: 'boolean', nullable: true)]
private int $cotraitance = 0;
#[ORM\OneToMany(targetEntity: FicheControlePreserieOperation::class, mappedBy: 'ficheControlePreserie', cascade: ['persist', 'remove'])]
private $operations;
#[ORM\ManyToOne(targetEntity: FicheControlePreserieType::class, inversedBy: 'ficheControlePreseries')]
private $type;
#[ORM\OneToOne(targetEntity: FicheControlePreserieCoupeDentelle::class, inversedBy: 'ficheControlePreserie', cascade: ['persist', 'remove'])]
private $coupe_dentelle;
#[ORM\OneToOne(targetEntity: FicheControlePreseriePackaging::class, inversedBy: 'ficheControlePreserie', cascade: ['persist', 'remove'])]
private $packaging;
#[ORM\ManyToOne(targetEntity: Bonnet::class, inversedBy: 'ficheControlePreseries')]
private $bonnet;
#[ORM\OneToMany(targetEntity: FicheControlePreserieMesure::class, mappedBy: 'ficheControlePreserie', cascade: ['persist', 'remove'])]
private $mesures;
#[ORM\ManyToOne(targetEntity: Taille::class, inversedBy: 'ficheControlePreseries')]
private $taille;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_update;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $ferme = false;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $attente_atelier = false;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_attente;
#[ORM\OneToOne(targetEntity: FicheControlePreserieEssayage::class, inversedBy: 'ficheControlePreserie', cascade: ['persist', 'remove'])]
private $essayage;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_essayage_atelier1;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_essayage_atelier2;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_essayage_atelier3;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_essayage_atelier1")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_atelier1 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_essayage_atelier2")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_atelier2 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_essayage_atelier3")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_atelier3 = null;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaire_decision_perele;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_operation1;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_operation2;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_operation3;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_operation4;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_operation5;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_operation6;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image_operation7;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_operation1")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_operation1 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_operation2")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_operation2 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_operation3")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_operation3 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_operation4")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_operation4 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_operation5")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_operation5 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_operation6")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_operation6 = null;
/**
* @Vich\UploadableField(mapping="preseries", fileNameProperty="image_operation7")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier_operation7 = null;
#[ORM\Column(type: 'float', nullable: true)]
private $score_sp;
#[ORM\Column(type: 'float', nullable: true)]
private $score_atelier;
#[ORM\Column(type: 'float', nullable: true)]
private $total_score_sp;
#[ORM\Column(type: 'float', nullable: true)]
private $total_score_atelier;
#[ORM\Column(type: 'float', nullable: true)]
private $pourcent_sp;
#[ORM\Column(type: 'float', nullable: true)]
private $pourcent_atelier;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'ficheControlePreseriesAtelier')]
private $user_atelier;
#[ORM\ManyToOne(targetEntity: AtelierChaine::class, inversedBy: 'ficheControlePreseries')]
private $chaine;
#[ORM\Column(type: 'float', nullable: true)]
private $temps_passe;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_debut_temp;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_fin_temp;
public function __construct()
{
$this->operations = new ArrayCollection();
$this->mesures = new ArrayCollection();
}
public function getFichierOperation1()
{
return $this->fichier_operation1;
}
public function setFichierOperation1(File $file = null)
{
$this->fichier_operation1 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierOperation2()
{
return $this->fichier_operation2;
}
public function setFichierOperation2(File $file = null)
{
$this->fichier_operation2 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierOperation3()
{
return $this->fichier_operation3;
}
public function setFichierOperation3(File $file = null)
{
$this->fichier_operation3 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierOperation4()
{
return $this->fichier_operation4;
}
public function setFichierOperation4(File $file = null)
{
$this->fichier_operation4 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierOperation5()
{
return $this->fichier_operation5;
}
public function setFichierOperation5(File $file = null)
{
$this->fichier_operation5 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierOperation6()
{
return $this->fichier_operation6;
}
public function setFichierOperation6(File $file = null)
{
$this->fichier_operation6 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierOperation7()
{
return $this->fichier_operation7;
}
public function setFichierOperation7(File $file = null)
{
$this->fichier_operation7 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function setFichierAtelier2(File $file = null)
{
$this->fichier_atelier2 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierAtelier2()
{
return $this->fichier_atelier2;
}
public function setFichierAtelier3(File $file = null)
{
$this->fichier_atelier3 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierAtelier3()
{
return $this->fichier_atelier3;
}
public function setFichierAtelier1(File $file = null)
{
$this->fichier_atelier1 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichierAtelier1()
{
return $this->fichier_atelier1;
}
public function setFichier1(File $file = null)
{
$this->fichier1 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichier1()
{
return $this->fichier1;
}
public function setFichier2(File $file = null)
{
$this->fichier2 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichier2()
{
return $this->fichier2;
}
public function setFichier3(File $file = null)
{
$this->fichier3 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichier3()
{
return $this->fichier3;
}
public function getId(): ?int
{
return $this->id;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getFichepreserie(): ?FichePreserie
{
return $this->fichepreserie;
}
public function setFichepreserie(?FichePreserie $fichepreserie): self
{
$this->fichepreserie = $fichepreserie;
return $this;
}
public function getColoris(): ?string
{
return $this->coloris;
}
public function setColoris(?string $coloris): self
{
$this->coloris = $coloris;
return $this;
}
public function getUserOuvre(): ?User
{
return $this->user_ouvre;
}
public function setUserOuvre(?User $user_ouvre): self
{
$this->user_ouvre = $user_ouvre;
return $this;
}
public function getDateControle(): ?\DateTimeInterface
{
return $this->date_controle;
}
public function setDateControle(?\DateTimeInterface $date_controle): self
{
$this->date_controle = $date_controle;
return $this;
}
public function getDateFermeture(): ?\DateTimeInterface
{
return $this->date_fermeture;
}
public function setDateFermeture(?\DateTimeInterface $date_fermeture): self
{
$this->date_fermeture = $date_fermeture;
return $this;
}
public function getDateControleAtelier(): ?\DateTimeInterface
{
return $this->date_controle_atelier;
}
public function setDateControleAtelier(?\DateTimeInterface $date_controle_atelier): self
{
$this->date_controle_atelier = $date_controle_atelier;
return $this;
}
public function getDateReception(): ?\DateTimeInterface
{
return $this->date_reception;
}
public function setDateReception(?\DateTimeInterface $date_reception): self
{
$this->date_reception = $date_reception;
return $this;
}
public function getNumeroColis(): ?int
{
return $this->numero_colis;
}
public function setNumeroColis(?int $numero_colis): self
{
$this->numero_colis = $numero_colis;
return $this;
}
public function getNumeroLancement(): ?string
{
return $this->numero_lancement;
}
public function setNumeroLancement(?string $numero_lancement): self
{
$this->numero_lancement = $numero_lancement;
return $this;
}
public function getQuantite(): ?string
{
return $this->quantite;
}
public function setQuantite(?string $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getCommentaireEssayage(): ?string
{
return $this->commentaire_essayage;
}
public function setCommentaireEssayage(?string $commentaire_essayage): self
{
$this->commentaire_essayage = $commentaire_essayage;
return $this;
}
public function getImageEssayage1(): ?string
{
return $this->image_essayage1;
}
public function setImageEssayage1(?string $image_essayage1): self
{
$this->image_essayage1 = $image_essayage1;
return $this;
}
public function getImageEssayage2(): ?string
{
return $this->image_essayage2;
}
public function setImageEssayage2(?string $image_essayage2): self
{
$this->image_essayage2 = $image_essayage2;
return $this;
}
public function getImageEssayage3(): ?string
{
return $this->image_essayage3;
}
public function setImageEssayage3(?string $image_essayage3): self
{
$this->image_essayage3 = $image_essayage3;
return $this;
}
public function getImageOperation7(): ?string
{
return $this->image_operation7;
}
public function setImageOperation7(?string $image_operation7): self
{
$this->image_operation7 = $image_operation7;
return $this;
}
public function getImageOperation6(): ?string
{
return $this->image_operation6;
}
public function setImageOperation6(?string $image_operation6): self
{
$this->image_operation6 = $image_operation6;
return $this;
}
public function getStatut(): ?StatutPreserie
{
return $this->statut;
}
public function setStatut(?StatutPreserie $statut): self
{
$this->statut = $statut;
return $this;
}
public function getAtelier(): ?Atelier
{
return $this->atelier;
}
public function setAtelier(?Atelier $atelier): self
{
$this->atelier = $atelier;
return $this;
}
public function getCotraitance(): ?bool
{
return $this->cotraitance;
}
public function setCotraitance(?bool $cotraitance): self
{
$this->cotraitance = $cotraitance;
return $this;
}
/**
* @return Collection|FicheControlePreserieOperation[]
*/
public function getOperations(): Collection
{
return $this->operations;
}
public function addOperation(FicheControlePreserieOperation $operation): self
{
if (!$this->operations->contains($operation)) {
$this->operations[] = $operation;
$operation->setFicheControlePreserie($this);
}
return $this;
}
public function removeOperation(FicheControlePreserieOperation $operation): self
{
if ($this->operations->removeElement($operation)) {
// set the owning side to null (unless already changed)
if ($operation->getFicheControlePreserie() === $this) {
$operation->setFicheControlePreserie(null);
}
}
return $this;
}
public function getType(): ?FicheControlePreserieType
{
return $this->type;
}
public function setType(?FicheControlePreserieType $type): self
{
$this->type = $type;
return $this;
}
public function getCoupeDentelle(): ?FicheControlePreserieCoupeDentelle
{
return $this->coupe_dentelle;
}
public function setCoupeDentelle(?FicheControlePreserieCoupeDentelle $coupe_dentelle): self
{
$this->coupe_dentelle = $coupe_dentelle;
return $this;
}
public function getPackaging(): ?FicheControlePreseriePackaging
{
return $this->packaging;
}
public function setPackaging(?FicheControlePreseriePackaging $packaging): self
{
$this->packaging = $packaging;
return $this;
}
public function getBonnet(): ?Bonnet
{
return $this->bonnet;
}
public function setBonnet(?Bonnet $bonnet): self
{
$this->bonnet = $bonnet;
return $this;
}
/**
* @return Collection|FicheControlePreserieMesure[]
*/
public function getMesures(): Collection
{
return $this->mesures;
}
public function addMesure(FicheControlePreserieMesure $mesure): self
{
if (!$this->mesures->contains($mesure)) {
$this->mesures[] = $mesure;
$mesure->setFicheControlePreserie($this);
}
return $this;
}
public function removeMesure(FicheControlePreserieMesure $mesure): self
{
if ($this->mesures->removeElement($mesure)) {
// set the owning side to null (unless already changed)
if ($mesure->getFicheControlePreserie() === $this) {
$mesure->setFicheControlePreserie(null);
}
}
return $this;
}
public function getTaille(): ?Taille
{
return $this->taille;
}
public function setTaille(?Taille $taille): self
{
$this->taille = $taille;
return $this;
}
public function getDateUpdate(): ?\DateTimeInterface
{
return $this->date_update;
}
public function setDateUpdate(?\DateTimeInterface $date_update): self
{
$this->date_update = $date_update;
return $this;
}
public function getFerme(): ?bool
{
return $this->ferme;
}
public function setFerme(?bool $ferme): self
{
$this->ferme = $ferme;
return $this;
}
public function getAttenteAtelier(): ?bool
{
return $this->attente_atelier;
}
public function setAttenteAtelier(?bool $attente_atelier): self
{
$this->attente_atelier = $attente_atelier;
return $this;
}
public function getDateAttente(): ?\DateTimeInterface
{
return $this->date_attente;
}
public function setDateAttente(?\DateTimeInterface $date_attente): self
{
$this->date_attente = $date_attente;
return $this;
}
public function getEssayage(): ?FicheControlePreserieEssayage
{
return $this->essayage;
}
public function setEssayage(?FicheControlePreserieEssayage $essayage): self
{
$this->essayage = $essayage;
return $this;
}
public function getImageEssayageAtelier1(): ?string
{
return $this->image_essayage_atelier1;
}
public function setImageEssayageAtelier1(?string $image_essayage_atelier1): self
{
$this->image_essayage_atelier1 = $image_essayage_atelier1;
return $this;
}
public function getImageEssayageAtelier2(): ?string
{
return $this->image_essayage_atelier2;
}
public function setImageEssayageAtelier2(?string $image_essayage_atelier2): self
{
$this->image_essayage_atelier2 = $image_essayage_atelier2;
return $this;
}
public function getImageEssayageAtelier3(): ?string
{
return $this->image_essayage_atelier3;
}
public function setImageEssayageAtelier3(?string $image_essayage_atelier3): self
{
$this->image_essayage_atelier3 = $image_essayage_atelier3;
return $this;
}
public function getCommentaireDecisionPerele(): ?string
{
return $this->commentaire_decision_perele;
}
public function setCommentaireDecisionPerele(?string $commentaire_decision_perele): self
{
$this->commentaire_decision_perele = $commentaire_decision_perele;
return $this;
}
public function getImageOperation1(): ?string
{
return $this->image_operation1;
}
public function setImageOperation1(?string $image_operation1): self
{
$this->image_operation1 = $image_operation1;
return $this;
}
public function getImageOperation2(): ?string
{
return $this->image_operation2;
}
public function setImageOperation2(?string $image_operation2): self
{
$this->image_operation2 = $image_operation2;
return $this;
}
public function getImageOperation3(): ?string
{
return $this->image_operation3;
}
public function setImageOperation3(?string $image_operation3): self
{
$this->image_operation3 = $image_operation3;
return $this;
}
public function getImageOperation4(): ?string
{
return $this->image_operation4;
}
public function setImageOperation4(?string $image_operation4): self
{
$this->image_operation4 = $image_operation4;
return $this;
}
public function getImageOperation5(): ?string
{
return $this->image_operation5;
}
public function setImageOperation5(?string $image_operation5): self
{
$this->image_operation5 = $image_operation5;
return $this;
}
public function getScoreSp(): ?float
{
return $this->score_sp;
}
public function setScoreSp(?float $score_sp): self
{
$this->score_sp = $score_sp;
return $this;
}
public function getScoreAtelier(): ?float
{
return $this->score_atelier;
}
public function setScoreAtelier(?float $score_atelier): self
{
$this->score_atelier = $score_atelier;
return $this;
}
public function getTotalScoreSp(): ?float
{
return $this->total_score_sp;
}
public function setTotalScoreSp(?float $total_score_sp): self
{
$this->total_score_sp = $total_score_sp;
return $this;
}
public function getTotalScoreAtelier(): ?float
{
return $this->total_score_atelier;
}
public function setTotalScoreAtelier(?float $total_score_atelier): self
{
$this->total_score_atelier = $total_score_atelier;
return $this;
}
public function getPourcentSp(): ?float
{
return $this->pourcent_sp;
}
public function setPourcentSp(?float $pourcent_sp): self
{
$this->pourcent_sp = $pourcent_sp;
return $this;
}
public function getPourcentAtelier(): ?float
{
return $this->pourcent_atelier;
}
public function setPourcentAtelier(?float $pourcent_atelier): self
{
$this->pourcent_atelier = $pourcent_atelier;
return $this;
}
public function getUserAtelier(): ?User
{
return $this->user_atelier;
}
public function setUserAtelier(?User $user_atelier): self
{
$this->user_atelier = $user_atelier;
return $this;
}
public function getChaine(): ?AtelierChaine
{
return $this->chaine;
}
public function setChaine(?AtelierChaine $chaine): self
{
$this->chaine = $chaine;
return $this;
}
public function getTempsPasse(): ?float
{
return $this->temps_passe;
}
public function setTempsPasse(?float $temps_passe): self
{
$this->temps_passe = $temps_passe;
return $this;
}
public function getDateDebutTemp(): ?\DateTimeInterface
{
return $this->date_debut_temp;
}
public function setDateDebutTemp(?\DateTimeInterface $date_debut_temp): self
{
$this->date_debut_temp = $date_debut_temp;
return $this;
}
public function getDateFinTemp(): ?\DateTimeInterface
{
return $this->date_fin_temp;
}
public function setDateFinTemp(?\DateTimeInterface $date_fin_temp): self
{
$this->date_fin_temp = $date_fin_temp;
return $this;
}
}