<?phpnamespace App\Entity;use App\Repository\PipelineIdentiteVisuelleProposalRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\HttpFoundation\File\File;use Vich\UploaderBundle\Mapping\Annotation as Vich;/** * @Vich\Uploadable() */#[ORM\Entity(repositoryClass: PipelineIdentiteVisuelleProposalRepository::class)]class PipelineIdentiteVisuelleProposal{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\ManyToOne(targetEntity: PipelineIdentiteVisuelle::class, inversedBy: 'proposals')] private $pipelineIdentiteVisuelle; #[ORM\Column(type: 'integer')] private $step; #[ORM\Column(type: 'string', nullable: true)] private $imageName; #[ORM\Column(type: 'integer', nullable: true)] private $imageSize; #[ORM\Column(type: 'datetime', nullable: true)] private $imageUpdatedAt; /** * @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="imageName", size="imageSize") */ private $imageFile; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $category; public function getId(): ?int { return $this->id; } public function getPipelineIdentiteVisuelle(): ?PipelineIdentiteVisuelle { return $this->pipelineIdentiteVisuelle; } public function setPipelineIdentiteVisuelle(?PipelineIdentiteVisuelle $pipelineIdentiteVisuelle): self { $this->pipelineIdentiteVisuelle = $pipelineIdentiteVisuelle; return $this; } public function getStep(): ?int { return $this->step; } public function setStep(int $step): self { $this->step = $step; return $this; } public function getImageName(): ?string { return $this->imageName; } public function setImageName(?string $imageName): self { $this->imageName = $imageName; return $this; } public function getImageSize(): ?int { return $this->imageSize; } public function setImageSize(?int $imageSize): self { $this->imageSize = $imageSize; return $this; } public function getImageUpdatedAt(): ?\DateTimeInterface { return $this->imageUpdatedAt; } public function setImageUpdatedAt(?\DateTimeInterface $imageUpdatedAt): self { $this->imageUpdatedAt = $imageUpdatedAt; return $this; } public function getImageFile(): ?File { return $this->imageFile; } public function setImageFile(?File $imageFile): self { $this->imageFile = $imageFile; if (null !== $this->imageFile) { $this->imageUpdatedAt = new \DateTimeImmutable(); } return $this; } public function getCategory(): ?string { return $this->category; } public function setCategory(?string $category): self { $this->category = $category; return $this; }}