src/Entity/FormulaireTeteCollection.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormulaireTeteCollectionRepository;
  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(repositoryClassFormulaireTeteCollectionRepository::class)]
  11. class FormulaireTeteCollection
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column(type'integer')]
  16.     private $id;
  17.     #[ORM\Column(type'datetime'nullabletrue)]
  18.     private $date_reception;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $reference;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private $numero_controleur;
  23.     #[ORM\Column(type'string'length255nullabletrue)]
  24.     private $quantite_exploite;
  25.     #[ORM\Column(type'string'length255nullabletrue)]
  26.     private $quantite_controle;
  27.     /**
  28.      * @Vich\UploadableField(mapping="collection", fileNameProperty="image1")
  29.      */
  30.     private ?\Symfony\Component\HttpFoundation\File\File $fichier1 null;
  31.     /**
  32.      * @Vich\UploadableField(mapping="collection", fileNameProperty="image2")
  33.      */
  34.     private ?\Symfony\Component\HttpFoundation\File\File $fichier2 null;
  35.     /**
  36.      * @Vich\UploadableField(mapping="collection", fileNameProperty="image3")
  37.      */
  38.     private ?\Symfony\Component\HttpFoundation\File\File $fichier3 null;
  39.     /**
  40.      * @Vich\UploadableField(mapping="collection", fileNameProperty="image4")
  41.      */
  42.     private ?\Symfony\Component\HttpFoundation\File\File $fichier4 null;
  43.     /**
  44.      * @Vich\UploadableField(mapping="collection", fileNameProperty="image5")
  45.      */
  46.     private ?\Symfony\Component\HttpFoundation\File\File $fichier5 null;
  47.     #[ORM\Column(type'string'length255nullabletrue)]
  48.     private $image1;
  49.     #[ORM\Column(type'string'length255nullabletrue)]
  50.     private $image2;
  51.     #[ORM\Column(type'string'length255nullabletrue)]
  52.     private $image3;
  53.     #[ORM\Column(type'string'length255nullabletrue)]
  54.     private $image4;
  55.     #[ORM\Column(type'string'length255nullabletrue)]
  56.     private $image5;
  57.     #[ORM\Column(type'text'nullabletrue)]
  58.     private $commentaire_image1;
  59.     #[ORM\Column(type'text'nullabletrue)]
  60.     private $commentaire_image2;
  61.     #[ORM\Column(type'text'nullabletrue)]
  62.     private $commentaire_image3;
  63.     #[ORM\Column(type'text'nullabletrue)]
  64.     private $commentaire_image4;
  65.     #[ORM\Column(type'text'nullabletrue)]
  66.     private $commentaire_image5;
  67.     #[ORM\Column(type'boolean'nullabletrue)]
  68.     private ?bool $valide false;
  69.     #[ORM\ManyToOne(targetEntityAtelier::class, inversedBy'formulaireTeteCollections')]
  70.     private $atelier;
  71.     #[ORM\Column(type'boolean'nullabletrue)]
  72.     private ?bool $cotraitance false;
  73.     public function getId(): ?int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function getDateReception(): ?\DateTimeInterface
  78.     {
  79.         return $this->date_reception;
  80.     }
  81.     public function setDateReception(?\DateTimeInterface $date_reception): self
  82.     {
  83.         $this->date_reception $date_reception;
  84.         return $this;
  85.     }
  86.     public function getReference(): ?string
  87.     {
  88.         return $this->reference;
  89.     }
  90.     public function setReference(?string $reference): self
  91.     {
  92.         $this->reference $reference;
  93.         return $this;
  94.     }
  95.     public function getNumeroControleur(): ?string
  96.     {
  97.         return $this->numero_controleur;
  98.     }
  99.     public function setNumeroControleur(?string $numero_controleur): self
  100.     {
  101.         $this->numero_controleur $numero_controleur;
  102.         return $this;
  103.     }
  104.     public function getQuantiteExploite(): ?string
  105.     {
  106.         return $this->quantite_exploite;
  107.     }
  108.     public function setQuantiteExploite(?string $quantite_exploite): self
  109.     {
  110.         $this->quantite_exploite $quantite_exploite;
  111.         return $this;
  112.     }
  113.     public function getQuantiteControle(): ?string
  114.     {
  115.         return $this->quantite_controle;
  116.     }
  117.     public function setQuantiteControle(?string $quantite_controle): self
  118.     {
  119.         $this->quantite_controle $quantite_controle;
  120.         return $this;
  121.     }
  122.     public function getImage1(): ?string
  123.     {
  124.         return $this->image1;
  125.     }
  126.     public function setImage1(?string $image1): self
  127.     {
  128.         $this->image1 $image1;
  129.         return $this;
  130.     }
  131.     public function getImage2(): ?string
  132.     {
  133.         return $this->image2;
  134.     }
  135.     public function setImage2(?string $image2): self
  136.     {
  137.         $this->image2 $image2;
  138.         return $this;
  139.     }
  140.     public function getImage3(): ?string
  141.     {
  142.         return $this->image3;
  143.     }
  144.     public function setImage3(?string $image3): self
  145.     {
  146.         $this->image3 $image3;
  147.         return $this;
  148.     }
  149.     public function getImage4(): ?string
  150.     {
  151.         return $this->image4;
  152.     }
  153.     public function setImage4(?string $image4): self
  154.     {
  155.         $this->image4 $image4;
  156.         return $this;
  157.     }
  158.     public function getImage5(): ?string
  159.     {
  160.         return $this->image5;
  161.     }
  162.     public function setImage5(?string $image5): self
  163.     {
  164.         $this->image5 $image5;
  165.         return $this;
  166.     }
  167.     public function getCommentaireImage1(): ?string
  168.     {
  169.         return $this->commentaire_image1;
  170.     }
  171.     public function setCommentaireImage1(?string $commentaire_image1): self
  172.     {
  173.         $this->commentaire_image1 $commentaire_image1;
  174.         return $this;
  175.     }
  176.     public function getCommentaireImage2(): ?string
  177.     {
  178.         return $this->commentaire_image2;
  179.     }
  180.     public function setCommentaireImage2(?string $commentaire_image2): self
  181.     {
  182.         $this->commentaire_image2 $commentaire_image2;
  183.         return $this;
  184.     }
  185.     public function getCommentaireImage3(): ?string
  186.     {
  187.         return $this->commentaire_image3;
  188.     }
  189.     public function setCommentaireImage3(?string $commentaire_image3): self
  190.     {
  191.         $this->commentaire_image3 $commentaire_image3;
  192.         return $this;
  193.     }
  194.     public function getCommentaireImage4(): ?string
  195.     {
  196.         return $this->commentaire_image4;
  197.     }
  198.     public function setCommentaireImage4(?string $commentaire_image4): self
  199.     {
  200.         $this->commentaire_image4 $commentaire_image4;
  201.         return $this;
  202.     }
  203.     public function getCommentaireImage5(): ?string
  204.     {
  205.         return $this->commentaire_image5;
  206.     }
  207.     public function setCommentaireImage5(?string $commentaire_image5): self
  208.     {
  209.         $this->commentaire_image5 $commentaire_image5;
  210.         return $this;
  211.     }
  212.     public function getValide(): ?bool
  213.     {
  214.         return $this->valide;
  215.     }
  216.     public function setValide(?bool $valide): self
  217.     {
  218.         $this->valide $valide;
  219.         return $this;
  220.     }
  221.     public function setFichier1(File $file null)
  222.     {
  223.         $this->fichier1 $file;
  224.         if ($file) {
  225.             $this->date_update = new \DateTime;
  226.         }
  227.     }
  228.     public function getFichier1()
  229.     {
  230.         return $this->fichier1;
  231.     }
  232.     public function setFichier2(File $file null)
  233.     {
  234.         $this->fichier2 $file;
  235.         if ($file) {
  236.             $this->date_update = new \DateTime;
  237.         }
  238.     }
  239.     public function getFichier2()
  240.     {
  241.         return $this->fichier2;
  242.     }
  243.     public function setFichier3(File $file null)
  244.     {
  245.         $this->fichier3 $file;
  246.         if ($file) {
  247.             $this->date_update = new \DateTime;
  248.         }
  249.     }
  250.     public function getFichier3()
  251.     {
  252.         return $this->fichier3;
  253.     }
  254.     public function setFichier4(File $file null)
  255.     {
  256.         $this->fichier4 $file;
  257.         if ($file) {
  258.             $this->date_update = new \DateTime;
  259.         }
  260.     }
  261.     public function getFichier4()
  262.     {
  263.         return $this->fichier4;
  264.     }
  265.     public function setFichier5(File $file null)
  266.     {
  267.         $this->fichier5 $file;
  268.         if ($file) {
  269.             $this->date_update = new \DateTime;
  270.         }
  271.     }
  272.     public function getFichier5()
  273.     {
  274.         return $this->fichier5;
  275.     }
  276.     public function getAtelier(): ?Atelier
  277.     {
  278.         return $this->atelier;
  279.     }
  280.     public function setAtelier(?Atelier $atelier): self
  281.     {
  282.         $this->atelier $atelier;
  283.         return $this;
  284.     }
  285.     public function getCotraitance(): ?bool
  286.     {
  287.         return $this->cotraitance;
  288.     }
  289.     public function setCotraitance(?bool $cotraitance): self
  290.     {
  291.         $this->cotraitance $cotraitance;
  292.         return $this;
  293.     }
  294. }