<?php
namespace App\Entity;
use App\Repository\TypeGroupeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TypeGroupeRepository::class)]
#[ORM\Table(name: 'type_groupes')]
class TypeGroupe
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 30)]
private ?string $intitule = null;
public function __toString(): string
{
return $this->intitule;
}
public function getId(): ?int
{
return $this->id;
}
public function getIntitule(): ?string
{
return $this->intitule;
}
public function setIntitule(string $intitule): self
{
$this->intitule = $intitule;
return $this;
}
}