src/Entity/Image.php line 9
<?php
namespace App\Entity;
use App\Repository\ImageRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ImageRepository::class)]
class Image
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $nomfichier = null;
#[ORM\Column(length: 8)]
private ?string $extension = null;
#[ORM\Column(length: 255)]
private ?string $urlfichier = null;
#[ORM\Column(length: 255)]
private ?string $legende = null;
public function __construct()
{
$this->id = 0;
$this->legende = "";
}
public function getId(): ?int
{
return $this->id;
}
public function getNomfichier(): ?string
{
return $this->nomfichier;
}
public function setNomfichier(string $nomfichier): self
{
$this->nomfichier = $nomfichier;
return $this;
}
public function getExtension(): ?string
{
return $this->extension;
}
public function setExtension(string $extension): self
{
$this->extension = $extension;
return $this;
}
public function getUrlfichier(): ?string
{
return $this->urlfichier;
}
public function setUrlfichier(string $urlfichier): self
{
$this->urlfichier = $urlfichier;
return $this;
}
public function getLegende(): ?string
{
return $this->legende;
}
public function setLegende(string $legende): self
{
$this->legende = $legende;
return $this;
}
}