src/Entity/Categories.php line 9
<?php
namespace App\Entity;
use App\Repository\CategoriesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CategoriesRepository::class)]
class Categories
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $titre = null;
#[ORM\Column(length: 255)]
private ?string $urlImg = null;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): static
{
$this->titre = $titre;
return $this;
}
public function getUrlImg(): ?string
{
return $this->urlImg;
}
public function setUrlImg(string $urlImg): static
{
$this->urlImg = $urlImg;
return $this;
}
}