src/Entity/SessionInscription.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SessionInscriptionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassSessionInscriptionRepository::class)]
  7. class SessionInscription
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  14.     private ?\DateTimeInterface $date null;
  15.     #[ORM\Column(type'boolean')]
  16.     private $etat false;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function isEtat(): ?bool
  22.     {
  23.         return $this->etat;
  24.     }
  25.     public function setEtat(bool $etat): self
  26.     {
  27.         $this->etat $etat;
  28.         return $this;
  29.     }
  30.     public function getDate(): ?\DateTimeInterface
  31.     {
  32.         return $this->date;
  33.     }
  34.     public function setDate(\DateTimeInterface $date): self
  35.     {
  36.         $this->date $date;
  37.         return $this;
  38.     }
  39. }