<?php
namespace App\Entity;
use App\Repository\FormulaireCollectionRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @Vich\Uploadable
*/
#[ORM\Entity(repositoryClass: FormulaireCollectionRepository::class)]
class FormulaireCollection
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_reception;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $reference;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $numero_controleur;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $quantite_exploite;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $quantite_controle;
/**
* @Vich\UploadableField(mapping="collection", fileNameProperty="image1")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier1 = null;
/**
* @Vich\UploadableField(mapping="collection", fileNameProperty="image2")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier2 = null;
/**
* @Vich\UploadableField(mapping="collection", fileNameProperty="image3")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier3 = null;
/**
* @Vich\UploadableField(mapping="collection", fileNameProperty="image4")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier4 = null;
/**
* @Vich\UploadableField(mapping="collection", fileNameProperty="image5")
*/
private ?\Symfony\Component\HttpFoundation\File\File $fichier5 = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image1;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image2;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image3;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image4;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image5;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaire_image1;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaire_image2;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaire_image3;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaire_image4;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaire_image5;
#[ORM\ManyToOne(targetEntity: Atelier::class, inversedBy: 'formulaireCollections')]
private $atelier;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $cotraitance = false;
public function __construct(){
}
public function getId(): ?int
{
return $this->id;
}
public function getDateReception(): ?\DateTimeInterface
{
return $this->date_reception;
}
public function setDateReception(?\DateTimeInterface $date_reception): self
{
$this->date_reception = $date_reception;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getNumeroControleur(): ?string
{
return $this->numero_controleur;
}
public function setNumeroControleur(?string $numero_controleur): self
{
$this->numero_controleur = $numero_controleur;
return $this;
}
public function getQuantiteExploite(): ?string
{
return $this->quantite_exploite;
}
public function setQuantiteExploite(?string $quantite_exploite): self
{
$this->quantite_exploite = $quantite_exploite;
return $this;
}
public function getQuantiteControle(): ?string
{
return $this->quantite_controle;
}
public function setQuantiteControle(?string $quantite_controle): self
{
$this->quantite_controle = $quantite_controle;
return $this;
}
public function getImage1(): ?string
{
return $this->image1;
}
public function setImage1(?string $image1): self
{
$this->image1 = $image1;
return $this;
}
public function getImage2(): ?string
{
return $this->image2;
}
public function setImage2(?string $image2): self
{
$this->image2 = $image2;
return $this;
}
public function getImage3(): ?string
{
return $this->image3;
}
public function setImage3(?string $image3): self
{
$this->image3 = $image3;
return $this;
}
public function getImage4(): ?string
{
return $this->image4;
}
public function setImage4(?string $image4): self
{
$this->image4 = $image4;
return $this;
}
public function getImage5(): ?string
{
return $this->image5;
}
public function setImage5(?string $image5): self
{
$this->image5 = $image5;
return $this;
}
public function getCommentaireImage1(): ?string
{
return $this->commentaire_image1;
}
public function setCommentaireImage1(?string $commentaire_image1): self
{
$this->commentaire_image1 = $commentaire_image1;
return $this;
}
public function getCommentaireImage2(): ?string
{
return $this->commentaire_image2;
}
public function setCommentaireImage2(?string $commentaire_image2): self
{
$this->commentaire_image2 = $commentaire_image2;
return $this;
}
public function getCommentaireImage3(): ?string
{
return $this->commentaire_image3;
}
public function setCommentaireImage3(?string $commentaire_image3): self
{
$this->commentaire_image3 = $commentaire_image3;
return $this;
}
public function getCommentaireImage4(): ?string
{
return $this->commentaire_image4;
}
public function setCommentaireImage4(?string $commentaire_image4): self
{
$this->commentaire_image4 = $commentaire_image4;
return $this;
}
public function getCommentaireImage5(): ?string
{
return $this->commentaire_image5;
}
public function setCommentaireImage5(?string $commentaire_image5): self
{
$this->commentaire_image5 = $commentaire_image5;
return $this;
}
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 setFichier4(File $file = null)
{
$this->fichier4 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichier4()
{
return $this->fichier4;
}
public function setFichier5(File $file = null)
{
$this->fichier5 = $file;
if ($file) {
$this->date_update = new \DateTime;
}
}
public function getFichier5()
{
return $this->fichier5;
}
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;
}
}