src/Entity/AgendaElement.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\AgendaElementRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\HasLifecycleCallbacks]
  8. #[ORM\Entity(repositoryClassAgendaElementRepository::class)]
  9. class AgendaElement
  10. {
  11.     use Timestampable;
  12.     
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     #[Groups(['getAgenda'])]
  17.     private ?int $id null;
  18.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  19.     #[Groups(['getAgenda'])]
  20.     private ?\DateTimeInterface $startAt null;
  21.     #[ORM\Column(typeTypes::TIME_MUTABLE)]
  22.     #[Groups(['getAgenda'])]
  23.     private ?\DateTimeInterface $endAt null;
  24.     #[ORM\Column(length255)]
  25.     #[Groups(['getAgenda'])]
  26.     private ?string $duration null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     #[Groups(['getAgenda'])]
  29.     private ?string $other null;
  30.     #[ORM\ManyToOne(inversedBy'agendaElements')]
  31.     #[Groups(['getAgenda'])]
  32.     private ?Subject $subject null;
  33.     #[ORM\ManyToOne(inversedBy'elements')]
  34.     #[ORM\JoinColumn(nullablefalse)]
  35.     private ?AgendaDay $agendaDay null;
  36.     #[ORM\ManyToOne(inversedBy'agendaElements')]
  37.     #[ORM\JoinColumn(nullablefalse)]
  38.     private ?User $author null;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getStartAt(): ?\DateTimeInterface
  44.     {
  45.         return $this->startAt;
  46.     }
  47.     public function setStartAt(\DateTimeInterface $startAt): static
  48.     {
  49.         $this->startAt $startAt;
  50.         return $this;
  51.     }
  52.     public function getEndAt(): ?\DateTimeInterface
  53.     {
  54.         return $this->endAt;
  55.     }
  56.     public function setEndAt(\DateTimeInterface $endAt): static
  57.     {
  58.         $this->endAt $endAt;
  59.         return $this;
  60.     }
  61.     public function getDuration(): ?string
  62.     {
  63.         return $this->duration;
  64.     }
  65.     public function setDuration(string $duration): static
  66.     {
  67.         $this->duration $duration;
  68.         return $this;
  69.     }
  70.     public function getOther(): ?string
  71.     {
  72.         return $this->other;
  73.     }
  74.     public function setOther(?string $other): static
  75.     {
  76.         $this->other $other;
  77.         return $this;
  78.     }
  79.     public function getSubject(): ?Subject
  80.     {
  81.         return $this->subject;
  82.     }
  83.     public function setSubject(?Subject $subject): static
  84.     {
  85.         $this->subject $subject;
  86.         return $this;
  87.     }
  88.     public function getAgendaDay(): ?AgendaDay
  89.     {
  90.         return $this->agendaDay;
  91.     }
  92.     public function setAgendaDay(?AgendaDay $agendaDay): static
  93.     {
  94.         $this->agendaDay $agendaDay;
  95.         return $this;
  96.     }
  97.     public function getAuthor(): ?User
  98.     {
  99.         return $this->author;
  100.     }
  101.     public function setAuthor(?User $author): static
  102.     {
  103.         $this->author $author;
  104.         return $this;
  105.     }
  106. }