src/Entity/FormulaireCollection.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormulaireCollectionRepository;
  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(repositoryClassFormulaireCollectionRepository::class)]
  11. class FormulaireCollection
  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\ManyToOne(targetEntityAtelier::class, inversedBy'formulaireCollections')]
  68.     private $atelier;
  69.     #[ORM\Column(type'boolean'nullabletrue)]
  70.     private ?bool $cotraitance false;
  71.     public function __construct(){
  72.     }
  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 setFichier1(File $file null)
  213.     {
  214.         $this->fichier1 $file;
  215.         if ($file) {
  216.             $this->date_update = new \DateTime;
  217.         }
  218.     }
  219.     public function getFichier1()
  220.     {
  221.         return $this->fichier1;
  222.     }
  223.     public function setFichier2(File $file null)
  224.     {
  225.         $this->fichier2 $file;
  226.         if ($file) {
  227.             $this->date_update = new \DateTime;
  228.         }
  229.     }
  230.     public function getFichier2()
  231.     {
  232.         return $this->fichier2;
  233.     }
  234.     public function setFichier3(File $file null)
  235.     {
  236.         $this->fichier3 $file;
  237.         if ($file) {
  238.             $this->date_update = new \DateTime;
  239.         }
  240.     }
  241.     public function getFichier3()
  242.     {
  243.         return $this->fichier3;
  244.     }
  245.     public function setFichier4(File $file null)
  246.     {
  247.         $this->fichier4 $file;
  248.         if ($file) {
  249.             $this->date_update = new \DateTime;
  250.         }
  251.     }
  252.     public function getFichier4()
  253.     {
  254.         return $this->fichier4;
  255.     }
  256.     public function setFichier5(File $file null)
  257.     {
  258.         $this->fichier5 $file;
  259.         if ($file) {
  260.             $this->date_update = new \DateTime;
  261.         }
  262.     }
  263.     public function getFichier5()
  264.     {
  265.         return $this->fichier5;
  266.     }
  267.     public function getAtelier(): ?Atelier
  268.     {
  269.         return $this->atelier;
  270.     }
  271.     public function setAtelier(?Atelier $atelier): self
  272.     {
  273.         $this->atelier $atelier;
  274.         return $this;
  275.     }
  276.     public function getCotraitance(): ?bool
  277.     {
  278.         return $this->cotraitance;
  279.     }
  280.     public function setCotraitance(?bool $cotraitance): self
  281.     {
  282.         $this->cotraitance $cotraitance;
  283.         return $this;
  284.     }
  285. }