src/Entity/Thematiques.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ThematiquesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassThematiquesRepository::class)]
  6. #[ORM\Table(name"thematiques")]
  7. class Thematiques
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length100)]
  14.     private string $nom;
  15.     #[ORM\Column(length255)]
  16.     private ?string $slug null;
  17.     #[ORM\Column(type"text"nullabletrue)]
  18.     private ?string $description null;
  19.     public function getId(): ?int{return $this->id;}
  20.     public function getNom(): ?string{return $this->nom;}
  21.     public function setNom(string $nom): self{$this->nom $nom;return $this;}
  22.     public function getSlug(): ?string{return $this->slug;}
  23.     public function setSlug(string $slug): self{$this->slug $slug;return $this;}
  24.     public function getDescription(): ?string{return $this->description;}
  25.     public function setDescription(?string $description): self $this->description $description;return $this;}
  26. }