src/Entity/Seance.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SeanceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassSeanceRepository::class)]
  8. class Seance
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")]
  16.     private ?string $libele null;
  17.     #[ORM\ManyToOne(inversedBy'seances')]
  18.     #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")]
  19.     private ?Engagement $engagement null;
  20.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  21.     #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")]
  22.     private ?\DateTimeInterface $dateTimeDebut null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")]
  25.     private ?\DateTimeInterface $dateTimeFin null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")]
  28.     private ?string $support null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     #[Assert\NotBlank (message:"Le champ ne peut pas être vide.")]
  31.     private ?string $lien null;
  32.     #[ORM\Column(nullabletrue)]
  33.     private ?int $etat null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $type null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $heureDebut null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $heureFin null;
  40.     public function __toString()
  41.     {
  42.         return $this->libele;
  43.     }
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getLibele(): ?string
  49.     {
  50.         return $this->libele;
  51.     }
  52.     public function setLibele(?string $libele): self
  53.     {
  54.         $this->libele $libele;
  55.         return $this;
  56.     }
  57.     public function getEngagement(): ?Engagement
  58.     {
  59.         return $this->engagement;
  60.     }
  61.     public function setEngagement(?Engagement $engagement): self
  62.     {
  63.         $this->engagement $engagement;
  64.         return $this;
  65.     }
  66.     public function getDateTimeDebut(): ?\DateTimeInterface
  67.     {
  68.         return $this->dateTimeDebut;
  69.     }
  70.     public function setDateTimeDebut(?\DateTimeInterface $dateTimeDebut): self
  71.     {
  72.         $this->dateTimeDebut $dateTimeDebut;
  73.         return $this;
  74.     }
  75.     public function getDateTimeFin(): ?\DateTimeInterface
  76.     {
  77.         return $this->dateTimeFin;
  78.     }
  79.     public function setDateTimeFin(?\DateTimeInterface $dateTimeFin): self
  80.     {
  81.         $this->dateTimeFin $dateTimeFin;
  82.         return $this;
  83.     }
  84.     public function getSupport(): ?string
  85.     {
  86.         return $this->support;
  87.     }
  88.     public function setSupport(?string $support): self
  89.     {
  90.         $this->support $support;
  91.         return $this;
  92.     }
  93.     public function getLien(): ?string
  94.     {
  95.         return $this->lien;
  96.     }
  97.     public function setLien(?string $lien): self
  98.     {
  99.         $this->lien $lien;
  100.         return $this;
  101.     }
  102.     public function getEtat(): ?int
  103.     {
  104.         return $this->etat;
  105.     }
  106.     public function setEtat(?int $etat): self
  107.     {
  108.         $this->etat $etat;
  109.         return $this;
  110.     }
  111.     public function getType(): ?string
  112.     {
  113.         return $this->type;
  114.     }
  115.     public function setType(?string $type): self
  116.     {
  117.         $this->type $type;
  118.         return $this;
  119.     }
  120.     public function getHeureDebut(): ?string
  121.     {
  122.         return $this->heureDebut;
  123.     }
  124.     public function setHeureDebut(?string $heureDebut): self
  125.     {
  126.         $this->heureDebut $heureDebut;
  127.         return $this;
  128.     }
  129.     public function getHeureFin(): ?string
  130.     {
  131.         return $this->heureFin;
  132.     }
  133.     public function setHeureFin(?string $heureFin): self
  134.     {
  135.         $this->heureFin $heureFin;
  136.         return $this;
  137.     }
  138. }