src/Entity/SessionFormation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SessionFormationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassSessionFormationRepository::class)]
  7. class SessionFormation
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  14.     private ?\DateTimeInterface $StartAt null;
  15.     public function getId(): ?int
  16.     {
  17.         return $this->id;
  18.     }
  19.     public function getStartAt(): ?\DateTimeInterface
  20.     {
  21.         return $this->StartAt;
  22.     }
  23.     public function setStartAt(?\DateTimeInterface $StartAt): static
  24.     {
  25.         $this->StartAt $StartAt;
  26.         return $this;
  27.     }
  28. }