<?phpnamespace App\Entity;use App\Repository\SeanceRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;#[ORM\Entity(repositoryClass: SeanceRepository::class)]class Seance{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")] private ?string $libele = null; #[ORM\ManyToOne(inversedBy: 'seances')] #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")] private ?Engagement $engagement = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")] private ?\DateTimeInterface $dateTimeDebut = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")] private ?\DateTimeInterface $dateTimeFin = null; #[ORM\Column(length: 255, nullable: true)] #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")] private ?string $support = null; #[ORM\Column(length: 255, nullable: true)] #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")] private ?string $lien = null; #[ORM\Column(nullable: true)] private ?int $etat = null; #[ORM\Column(length: 255, nullable: true)] private ?string $type = null; #[ORM\Column(length: 255, nullable: true)] private ?string $heureDebut = null; #[ORM\Column(length: 255, nullable: true)] private ?string $heureFin = null; public function __toString() { return $this->libele; } public function getId(): ?int { return $this->id; } public function getLibele(): ?string { return $this->libele; } public function setLibele(?string $libele): self { $this->libele = $libele; return $this; } public function getEngagement(): ?Engagement { return $this->engagement; } public function setEngagement(?Engagement $engagement): self { $this->engagement = $engagement; return $this; } public function getDateTimeDebut(): ?\DateTimeInterface { return $this->dateTimeDebut; } public function setDateTimeDebut(?\DateTimeInterface $dateTimeDebut): self { $this->dateTimeDebut = $dateTimeDebut; return $this; } public function getDateTimeFin(): ?\DateTimeInterface { return $this->dateTimeFin; } public function setDateTimeFin(?\DateTimeInterface $dateTimeFin): self { $this->dateTimeFin = $dateTimeFin; return $this; } public function getSupport(): ?string { return $this->support; } public function setSupport(?string $support): self { $this->support = $support; return $this; } public function getLien(): ?string { return $this->lien; } public function setLien(?string $lien): self { $this->lien = $lien; return $this; } public function getEtat(): ?int { return $this->etat; } public function setEtat(?int $etat): self { $this->etat = $etat; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getHeureDebut(): ?string { return $this->heureDebut; } public function setHeureDebut(?string $heureDebut): self { $this->heureDebut = $heureDebut; return $this; } public function getHeureFin(): ?string { return $this->heureFin; } public function setHeureFin(?string $heureFin): self { $this->heureFin = $heureFin; return $this; }}