<?php
namespace App\Entity;
use App\Repository\ImageRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
#[ORM\Entity(repositoryClass: ImageRepository::class)]
#[Vich\Uploadable]
class Image extends Element
{
#[ORM\ManyToOne(inversedBy: 'images')]
private ?Project $projet = null;
/**
* @Vich\UploadableField(mapping="file_upload", fileNameProperty="imageFiles")
*/
private ?array $imageFiles = [];
#[ORM\Column(length: 255)]
private ?string $titre = null;
#[ORM\Column(length: 255)]
private ?string $description = null;
#[ORM\Column(length: 255)]
private ?string $emplacement;
public function getProjet(): ?Project
{
return $this->projet;
}
public function setProjet(?Project $projet): static
{
$this->projet = $projet;
return $this;
}
public function getImageFiles(): ?array
{
return $this->imageFiles;
}
public function setImageFiles(array $imageFiles): static
{
$this->imageFiles = $imageFiles;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): static
{
$this->titre = $titre;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): static
{
$this->description = $description;
return $this;
}
public function getEmplacement(): ?string
{
return $this->emplacement;
}
public function setEmplacement(string $emplacement): static
{
$this->emplacement = $emplacement;
return $this;
}
}