<?php
namespace App\Entity;
use App\Repository\GaleriesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: GaleriesRepository::class)]
#[ORM\Table(name: "galeries")]
class Galeries
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
// Relation avec table Ville (si elle existe)
#[ORM\Column]
private ?string $nom = null;
#[ORM\Column(name: "img_gal")]
private ?string $imgal = null;
#[ORM\Column(type: "datetime", nullable: true, options: ['default' => 'CURRENT_TIMESTAMP'])]
private ?\DateTimeInterface $created_at = null;
public function __construct(){$this->created_at = new \DateTime();}
public function getId(): ?int { return $this->id;}
public function getNom(): String{ return $this->nom;}
public function setNom(String $nom): self{$this->nom = $nom;return $this;}
public function getImage(): string{return $this->imgal;}
public function setImage(string $imgal): static{$this->imgal = $imgal;return $this;}
public function getCreatedAt(): ?\DateTimeInterface{ return $this->created_at;}
public function setCreatedAt(?\DateTimeInterface $created_at): self{ $this->created_at = $created_at;return $this;}
}