src/Entity/TimeTable.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TimeTableRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassTimeTableRepository::class)]
  7. class TimeTable
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     
  14.     
  15.     #[ORM\Column(length255)]
  16.     private ?string $title null;
  17.   
  18.     #[ORM\ManyToOne(inversedBy'timeTables')]
  19.     private ?User $prof null;
  20.     #[ORM\Column]
  21.     private ?int $dayOfWeek null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  23.     private ?\DateTimeInterface $startTime null;
  24.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  25.     private ?\DateTimeInterface $endTime null;
  26.     #[ORM\ManyToOne(inversedBy'timeTables')]
  27.     #[ORM\JoinColumn(nullabletrue)]
  28.     private ?TimeTableClass $parent null;
  29.     #[ORM\ManyToOne(inversedBy'timeTables')]
  30.     private ?Subject $subject null;
  31.     #[ORM\ManyToOne(inversedBy'timeTableYear')]
  32.     #[ORM\JoinColumn(nullablefalse)]
  33.     private ?SchoolYear $year null;
  34.     #[ORM\ManyToOne(inversedBy'TimeTableClasse')]
  35.     #[ORM\JoinColumn(nullablefalse)]
  36.     private ?TheClass $classe null;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getTitle(): ?string
  42.     {
  43.         return $this->title;
  44.     }
  45.     public function setTitle(string $title): static
  46.     {
  47.         $this->title $title;
  48.         return $this;
  49.     }
  50.     public function getProf(): ?User
  51.     {
  52.         return $this->prof;
  53.     }
  54.     public function setProf(?User $prof): static
  55.     {
  56.         $this->prof $prof;
  57.         return $this;
  58.     }
  59.     public function getDayOfWeek(): ?int
  60.     {
  61.         return $this->dayOfWeek;
  62.     }
  63.     public function setDayOfWeek(int $dayOfWeek): static
  64.     {
  65.         $this->dayOfWeek $dayOfWeek;
  66.         return $this;
  67.     }
  68.     public function getStartTime(): ?\DateTimeInterface
  69.     {
  70.         return $this->startTime;
  71.     }
  72.     public function setStartTime(\DateTimeInterface $startTime): static
  73.     {
  74.         $this->startTime $startTime;
  75.         return $this;
  76.     }
  77.     public function getEndTime(): ?\DateTimeInterface
  78.     {
  79.         return $this->endTime;
  80.     }
  81.     public function setEndTime(\DateTimeInterface $endTime): static
  82.     {
  83.         $this->endTime $endTime;
  84.         return $this;
  85.     }
  86.     public function getParent(): ?TimeTableClass
  87.     {
  88.         return $this->parent;
  89.     }
  90.     public function setParent(?TimeTableClass $parent): static
  91.     {
  92.         $this->parent $parent;
  93.         return $this;
  94.     }
  95.     public function getSubject(): ?Subject
  96.     {
  97.         return $this->subject;
  98.     }
  99.     public function setSubject(?Subject $subject): static
  100.     {
  101.         $this->subject $subject;
  102.         return $this;
  103.     }
  104.     public function getYear(): ?SchoolYear
  105.     {
  106.         return $this->year;
  107.     }
  108.     public function setYear(?SchoolYear $year): static
  109.     {
  110.         $this->year $year;
  111.         return $this;
  112.     }
  113.     public function getClasse(): ?TheClass
  114.     {
  115.         return $this->classe;
  116.     }
  117.     public function setClasse(?TheClass $classe): static
  118.     {
  119.         $this->classe $classe;
  120.         return $this;
  121.     }
  122. }