src/Entity/Event.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EventRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEventRepository::class)]
  7. class Event
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $title null;
  15.     #[ORM\Column]
  16.     private ?\DateTimeImmutable $startAt null;
  17.     #[ORM\Column]
  18.     private ?\DateTimeImmutable $endAt null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $description null;
  21.     
  22.     #[ORM\Column]
  23.     private ?\DateTimeImmutable $hourAt null;
  24.     #[ORM\Column]
  25.     private ?\DateTimeImmutable $hourEnd null;
  26.     #[ORM\Column(length70)]
  27.     private ?string $text_Color null;
  28.     #[ORM\Column(length70)]
  29.     private ?string $border_Color null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getTitle(): ?string
  35.     {
  36.         return $this->title;
  37.     }
  38.     public function setTitle(string $title): static
  39.     {
  40.         $this->title $title;
  41.         return $this;
  42.     }
  43.     public function getStartAt(): ?\DateTimeImmutable
  44.     {
  45.         return $this->startAt;
  46.     }
  47.     public function setStartAt(\DateTimeImmutable $startAt): static
  48.     {
  49.         $this->startAt $startAt;
  50.         return $this;
  51.     }
  52.     public function getEndAt(): ?\DateTimeImmutable
  53.     {
  54.         return $this->endAt;
  55.     }
  56.     public function setEndAt(\DateTimeImmutable $endAt): static
  57.     {
  58.         $this->endAt $endAt;
  59.         return $this;
  60.     }
  61.     public function getDescription(): ?string
  62.     {
  63.         return $this->description;
  64.     }
  65.     public function setDescription(string $description): static
  66.     {
  67.         $this->description $description;
  68.         return $this;
  69.     }
  70.     public function getHourAt(): ?\DateTimeImmutable
  71.     {
  72.         return $this->hourAt;
  73.     }
  74.     public function setHourAt(\DateTimeImmutable $hourAt): static
  75.     {
  76.         $this->hourAt $hourAt;
  77.         return $this;
  78.     }
  79.     public function getHourEnd(): ?\DateTimeImmutable
  80.     {
  81.         return $this->hourEnd;
  82.     }
  83.     public function setHourEnd(\DateTimeImmutable $hourEnd): static
  84.     {
  85.         $this->hourEnd $hourEnd;
  86.         return $this;
  87.     }
  88.     public function getTextColor(): ?string
  89.     {
  90.         return $this->text_Color;
  91.     }
  92.     public function setTextColor(string $text_Color): static
  93.     {
  94.         $this->text_Color $text_Color;
  95.         return $this;
  96.     }
  97.     public function getBorderColor(): ?string
  98.     {
  99.         return $this->border_Color;
  100.     }
  101.     public function setBorderColor(string $border_Color): static
  102.     {
  103.         $this->border_Color $border_Color;
  104.         return $this;
  105.     }
  106. }