src/Entity/PipelineIdentiteVisuelleProposal.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PipelineIdentiteVisuelleProposalRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\HttpFoundation\File\File;
  8. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  9. /**
  10.  * @Vich\Uploadable()
  11.  */
  12. #[ORM\Entity(repositoryClassPipelineIdentiteVisuelleProposalRepository::class)]
  13. class PipelineIdentiteVisuelleProposal
  14. {
  15.   #[ORM\Id]
  16.   #[ORM\GeneratedValue]
  17.   #[ORM\Column(type'integer')]
  18.   private $id;
  19.   #[ORM\ManyToOne(targetEntityPipelineIdentiteVisuelle::class, inversedBy'proposals')]
  20.   private $pipelineIdentiteVisuelle;
  21.   #[ORM\Column(type'integer')]
  22.   private $step;
  23.   #[ORM\Column(type'string'nullabletrue)]
  24.   private $imageName;
  25.   #[ORM\Column(type'integer'nullabletrue)]
  26.   private $imageSize;
  27.   #[ORM\Column(type'datetime'nullabletrue)]
  28.   private $imageUpdatedAt;
  29.   /**
  30.    * @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="imageName", size="imageSize")
  31.    */
  32.   private $imageFile;
  33.   #[ORM\Column(type'string'length255nullabletrue)]
  34.   private $category;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getPipelineIdentiteVisuelle(): ?PipelineIdentiteVisuelle
  40.     {
  41.         return $this->pipelineIdentiteVisuelle;
  42.     }
  43.     public function setPipelineIdentiteVisuelle(?PipelineIdentiteVisuelle $pipelineIdentiteVisuelle): self
  44.     {
  45.         $this->pipelineIdentiteVisuelle $pipelineIdentiteVisuelle;
  46.         return $this;
  47.     }
  48.     public function getStep(): ?int
  49.     {
  50.         return $this->step;
  51.     }
  52.     public function setStep(int $step): self
  53.     {
  54.         $this->step $step;
  55.         return $this;
  56.     }
  57.   public function getImageName(): ?string
  58.   {
  59.     return $this->imageName;
  60.   }
  61.   public function setImageName(?string $imageName): self
  62.   {
  63.     $this->imageName $imageName;
  64.     return $this;
  65.   }
  66.   public function getImageSize(): ?int
  67.   {
  68.     return $this->imageSize;
  69.   }
  70.   public function setImageSize(?int $imageSize): self
  71.   {
  72.     $this->imageSize $imageSize;
  73.     return $this;
  74.   }
  75.   public function getImageUpdatedAt(): ?\DateTimeInterface
  76.   {
  77.     return $this->imageUpdatedAt;
  78.   }
  79.   public function setImageUpdatedAt(?\DateTimeInterface $imageUpdatedAt): self
  80.   {
  81.     $this->imageUpdatedAt $imageUpdatedAt;
  82.     return $this;
  83.   }
  84.   public function getImageFile(): ?File
  85.   {
  86.     return $this->imageFile;
  87.   }
  88.   public function setImageFile(?File $imageFile): self
  89.   {
  90.     $this->imageFile $imageFile;
  91.     if (null !== $this->imageFile) {
  92.       $this->imageUpdatedAt = new \DateTimeImmutable();
  93.     }
  94.     return $this;
  95.   }
  96.   public function getCategory(): ?string
  97.   {
  98.       return $this->category;
  99.   }
  100.   public function setCategory(?string $category): self
  101.   {
  102.       $this->category $category;
  103.       return $this;
  104.   }
  105. }