<?phpnamespace App\Entity;use App\Repository\TimeTableRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: TimeTableRepository::class)]class TimeTable{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $title = null; #[ORM\ManyToOne(inversedBy: 'timeTables')] private ?User $prof = null; #[ORM\Column] private ?int $dayOfWeek = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $startTime = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $endTime = null; #[ORM\ManyToOne(inversedBy: 'timeTables')] #[ORM\JoinColumn(nullable: true)] private ?TimeTableClass $parent = null; #[ORM\ManyToOne(inversedBy: 'timeTables')] private ?Subject $subject = null; #[ORM\ManyToOne(inversedBy: 'timeTableYear')] #[ORM\JoinColumn(nullable: false)] private ?SchoolYear $year = null; #[ORM\ManyToOne(inversedBy: 'TimeTableClasse')] #[ORM\JoinColumn(nullable: false)] private ?TheClass $classe = null; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): static { $this->title = $title; return $this; } public function getProf(): ?User { return $this->prof; } public function setProf(?User $prof): static { $this->prof = $prof; return $this; } public function getDayOfWeek(): ?int { return $this->dayOfWeek; } public function setDayOfWeek(int $dayOfWeek): static { $this->dayOfWeek = $dayOfWeek; return $this; } public function getStartTime(): ?\DateTimeInterface { return $this->startTime; } public function setStartTime(\DateTimeInterface $startTime): static { $this->startTime = $startTime; return $this; } public function getEndTime(): ?\DateTimeInterface { return $this->endTime; } public function setEndTime(\DateTimeInterface $endTime): static { $this->endTime = $endTime; return $this; } public function getParent(): ?TimeTableClass { return $this->parent; } public function setParent(?TimeTableClass $parent): static { $this->parent = $parent; return $this; } public function getSubject(): ?Subject { return $this->subject; } public function setSubject(?Subject $subject): static { $this->subject = $subject; return $this; } public function getYear(): ?SchoolYear { return $this->year; } public function setYear(?SchoolYear $year): static { $this->year = $year; return $this; } public function getClasse(): ?TheClass { return $this->classe; } public function setClasse(?TheClass $classe): static { $this->classe = $classe; return $this; }}