src/Entity/DerogationSynthese.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DerogationSyntheseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. /**
  8.  * @Vich\Uploadable
  9.  */
  10. #[ORM\Entity(repositoryClassDerogationSyntheseRepository::class)]
  11. class DerogationSynthese implements \Stringable
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column(type'integer')]
  16.     private $id;
  17.     #[ORM\Column(type'string'length255nullabletrue)]
  18.     private $name_derogation;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $reference;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private $coloris;
  23.     #[ORM\ManyToOne(targetEntityTaille::class, inversedBy'derogationSyntheses')]
  24.     private $taille;
  25.     #[ORM\ManyToOne(targetEntityBonnet::class, inversedBy'derogationSyntheses')]
  26.     private $bonnet;
  27.     #[ORM\Column(type'float'nullabletrue)]
  28.     private $quantite_totale;
  29.     #[ORM\Column(type'string'length255nullabletrue)]
  30.     private $numero_lancement;
  31.     #[ORM\Column(type'datetime'nullabletrue)]
  32.     private $date_creation;
  33.     #[ORM\Column(type'boolean'nullabletrue)]
  34.     private $ferme;
  35.     #[ORM\ManyToOne(targetEntityStatutDerogation::class, inversedBy'derogationSyntheses')]
  36.     private $statut;
  37.     #[ORM\Column(type'string'length255nullabletrue)]
  38.     private $numero_derogation;
  39.     #[ORM\ManyToOne(targetEntityAtelier::class, inversedBy'derogationSyntheses')]
  40.     private $atelier;
  41.     #[ORM\ManyToOne(targetEntityTableauMesureLibelle::class, inversedBy'derogationSyntheses')]
  42.     private $mesure;
  43.     #[ORM\ManyToOne(targetEntityDefaut::class, inversedBy'derogationSyntheses')]
  44.     private $defaut;
  45.     #[ORM\Column(type'text'nullabletrue)]
  46.     private $commentaire;
  47.     #[ORM\Column(type'string'length255nullabletrue)]
  48.     private $image1;
  49.     /**
  50.      * @Vich\UploadableField(mapping="derogations", fileNameProperty="image1")
  51.      */
  52.     private ?\Symfony\Component\HttpFoundation\File\File $fichier1 null;
  53.     #[ORM\Column(type'string'length255nullabletrue)]
  54.     private $image2;
  55.     /**
  56.      * @Vich\UploadableField(mapping="derogations", fileNameProperty="image2")
  57.      */
  58.     private ?\Symfony\Component\HttpFoundation\File\File $fichier2 null;
  59.     #[ORM\Column(type'string'length255nullabletrue)]
  60.     private $image3;
  61.     /**
  62.      * @Vich\UploadableField(mapping="derogations", fileNameProperty="image3")
  63.      */
  64.     private ?\Symfony\Component\HttpFoundation\File\File $fichier3 null;
  65.     #[ORM\Column(type'datetime'nullabletrue)]
  66.     private $date_update;
  67.     #[ORM\Column(type'datetime'nullabletrue)]
  68.     private $date_fermeture;
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function setFichier1(File $file null)
  74.     {
  75.         $this->fichier1 $file;
  76.         if ($file) {
  77.             $this->date_update = new \DateTime;
  78.         }
  79.     }
  80.     public function getFichier1()
  81.     {
  82.         return $this->fichier1;
  83.     }
  84.     public function setFichier2(File $file null)
  85.     {
  86.         $this->fichier2 $file;
  87.         if ($file) {
  88.             $this->date_update = new \DateTime;
  89.         }
  90.     }
  91.     public function getFichier2()
  92.     {
  93.         return $this->fichier2;
  94.     }
  95.     public function setFichier3(File $file null)
  96.     {
  97.         $this->fichier3 $file;
  98.         if ($file) {
  99.             $this->date_update = new \DateTime;
  100.         }
  101.     }
  102.     public function getFichier3()
  103.     {
  104.         return $this->fichier3;
  105.     }
  106.     public function getNameDerogation(): ?string
  107.     {
  108.         return $this->name_derogation;
  109.     }
  110.     public function setNameDerogation(?string $name_derogation): self
  111.     {
  112.         $this->name_derogation $name_derogation;
  113.         return $this;
  114.     }
  115.     public function getReference(): ?string
  116.     {
  117.         return $this->reference;
  118.     }
  119.     public function setReference(?string $reference): self
  120.     {
  121.         $this->reference $reference;
  122.         return $this;
  123.     }
  124.     public function getColoris(): ?string
  125.     {
  126.         return $this->coloris;
  127.     }
  128.     public function setColoris(?string $coloris): self
  129.     {
  130.         $this->coloris $coloris;
  131.         return $this;
  132.     }
  133.     public function getTaille(): ?Taille
  134.     {
  135.         return $this->taille;
  136.     }
  137.     public function setTaille(?Taille $taille): self
  138.     {
  139.         $this->taille $taille;
  140.         return $this;
  141.     }
  142.     public function getBonnet(): ?Bonnet
  143.     {
  144.         return $this->bonnet;
  145.     }
  146.     public function setBonnet(?Bonnet $bonnet): self
  147.     {
  148.         $this->bonnet $bonnet;
  149.         return $this;
  150.     }
  151.     public function getQuantiteTotale(): ?float
  152.     {
  153.         return $this->quantite_totale;
  154.     }
  155.     public function setQuantiteTotale(?float $quantite_totale): self
  156.     {
  157.         $this->quantite_totale $quantite_totale;
  158.         return $this;
  159.     }
  160.     public function getNumeroLancement(): ?string
  161.     {
  162.         return $this->numero_lancement;
  163.     }
  164.     public function setNumeroLancement(?string $numero_lancement): self
  165.     {
  166.         $this->numero_lancement $numero_lancement;
  167.         return $this;
  168.     }
  169.     public function getDateCreation(): ?\DateTimeInterface
  170.     {
  171.         return $this->date_creation;
  172.     }
  173.     public function setDateCreation(?\DateTimeInterface $date_creation): self
  174.     {
  175.         $this->date_creation $date_creation;
  176.         return $this;
  177.     }
  178.     public function getFerme(): ?bool
  179.     {
  180.         return $this->ferme;
  181.     }
  182.     public function setFerme(?bool $ferme): self
  183.     {
  184.         $this->ferme $ferme;
  185.         return $this;
  186.     }
  187.     public function __toString(): string
  188.     {
  189.         return (string) $this->name_derogation;
  190.     }
  191.     public function getStatut(): ?StatutDerogation
  192.     {
  193.         return $this->statut;
  194.     }
  195.     public function setStatut(?StatutDerogation $statut): self
  196.     {
  197.         $this->statut $statut;
  198.         return $this;
  199.     }
  200.     public function getNumeroDerogation(): ?string
  201.     {
  202.         return $this->numero_derogation;
  203.     }
  204.     public function setNumeroDerogation(?string $numero_derogation): self
  205.     {
  206.         $this->numero_derogation $numero_derogation;
  207.         return $this;
  208.     }
  209.     public function getAtelier(): ?Atelier
  210.     {
  211.         return $this->atelier;
  212.     }
  213.     public function setAtelier(?Atelier $atelier): self
  214.     {
  215.         $this->atelier $atelier;
  216.         return $this;
  217.     }
  218.     public function getMesure(): ?TableauMesureLibelle
  219.     {
  220.         return $this->mesure;
  221.     }
  222.     public function setMesure(?TableauMesureLibelle $mesure): self
  223.     {
  224.         $this->mesure $mesure;
  225.         return $this;
  226.     }
  227.     public function getDefaut(): ?Defaut
  228.     {
  229.         return $this->defaut;
  230.     }
  231.     public function setDefaut(?Defaut $defaut): self
  232.     {
  233.         $this->defaut $defaut;
  234.         return $this;
  235.     }
  236.     public function getCommentaire(): ?string
  237.     {
  238.         return $this->commentaire;
  239.     }
  240.     public function setCommentaire(?string $commentaire): self
  241.     {
  242.         $this->commentaire $commentaire;
  243.         return $this;
  244.     }
  245.     public function getImage1(): ?string
  246.     {
  247.         return $this->image1;
  248.     }
  249.     public function setImage1(?string $image1): self
  250.     {
  251.         $this->image1 $image1;
  252.         return $this;
  253.     }
  254.     public function getImage2(): ?string
  255.     {
  256.         return $this->image2;
  257.     }
  258.     public function setImage2(?string $image2): self
  259.     {
  260.         $this->image2 $image2;
  261.         return $this;
  262.     }
  263.     public function getImage3(): ?string
  264.     {
  265.         return $this->image3;
  266.     }
  267.     public function setImage3(?string $image3): self
  268.     {
  269.         $this->image3 $image3;
  270.         return $this;
  271.     }
  272.     public function getDateUpdate(): ?\DateTimeInterface
  273.     {
  274.         return $this->date_update;
  275.     }
  276.     public function setDateUpdate(?\DateTimeInterface $date_update): self
  277.     {
  278.         $this->date_update $date_update;
  279.         return $this;
  280.     }
  281.     public function getDateFermeture(): ?\DateTimeInterface
  282.     {
  283.         return $this->date_fermeture;
  284.     }
  285.     public function setDateFermeture(?\DateTimeInterface $date_fermeture): self
  286.     {
  287.         $this->date_fermeture $date_fermeture;
  288.         return $this;
  289.     }
  290. }